A closure used by response handlers that takes a request, response, and data and returns a serialized object and any error that occured in the process.
The type in which all response serializers must conform to in order to serialize a response.
*/
publicprotocolResponseSerializer{
/// The type of serialized object to be created by this `ResponseSerializer`.
typealiasSerializedObject
/// A closure used by response handlers that takes a request, response, and data and returns a serialized object and any error that occured in the process.
/// The type of serialized object to be created by this `ResponseSerializer`.
publictypealiasSerializedObject=T
/// A closure used by response handlers that takes a request, response, and data and returns a serialized object and any error that occured in the process.
Creates a response serializer that returns a JSON object constructed from the response data using `NSJSONSerialization` with the specified reading options.
Creates a response serializer that returns an object constructed from the response data using `NSPropertyListSerialization` with the specified reading options.
...
...
@@ -111,14 +209,19 @@ extension Request {
:returns: A property list object response serializer.