GRequest
An HTTP request library written in Swift.
Basic Usage
Be simple, as it should be:
If you need more infomation:
Use .query()
to pass parameters for GET methods
As for POST:
More:
Instances And Chainnings
A Request is in fact a GRequest<T>
It's typealias Request = GRequest<NSData>
as default.
And a GRequest
is a Generic class specifiying the behavior of the response.
Most methods returns an instance of the GRequest
to make chains.
For example .path()
:
Response Deserialization
As for the response behavior.
It's mostly about Response Deserialization:
Note for more infomation about the JSONValue
, see SwiftyJSON
If you need something.Just specify it!
If you don't want to do that every time:
Extensibility
You can add your custom implementation of your Model deserialization.
By extentions conform protocol: ResponseDeserialization