ResponseSerializer
The protocol that response serializers must adhere to.
-
Deserialize the response received.
Declaration
Swift
func response(data: NSData) -> (AnyObject?)
Return Value
the serialized response
-
Validate the response received.
Declaration
Swift
func validateResponse(response: NSURLResponse!, data: NSData, error: NSErrorPointer) -> Bool
Return Value
either true or false if the response is valid for this particular serializer.