AFURLRequestSerialization Protocol Reference
Conforms to | NSCoding NSCopying NSObject |
Declared in | AFURLRequestSerialization.h |
Overview
The AFURLRequestSerialization
protocol is adopted by an object that encodes parameters for a specified HTTP requests. Request serializers may encode parameters as query strings, HTTP bodies, setting the appropriate HTTP header fields as necessary.
For example, a JSON request serializer may set the HTTP body of the request to a JSON representation, and set the Content-Type
HTTP header field value to application/json
.