HttpRequestSerializer
An HttpRequest serializer that handles form-encoded URL requess including multipart support.
-
The url that this request serializer is bound to.
Declaration
Swift
public var url: NSURL? -
Any headers that will be appended on the request.
Declaration
Swift
public var headers: [String: String]? -
The String encoding to be used.
Declaration
Swift
public var stringEncoding: NSNumber -
The cache policy.
Declaration
Swift
public var cachePolicy: NSURLRequestCachePolicy -
The timeout interval.
Declaration
Swift
public var timeoutInterval: NSTimeInterval -
Defualt initializer.
Declaration
Swift
public init() -
Build an request using the specified params passed in.
Declaration
Swift
public func request(url: NSURL, method: HttpMethod, parameters: [String: AnyObject]?, headers: [String: String]? = nil) -> NSURLRequestParameters
urlthe url of the resource.
methodthe method to be used.
parametersthe request parameters.
headersany headers to be used on this request.
Return Value
the URLRequest object.
-
Build an multipart request using the specified params passed in.
Declaration
Swift
public func multipartRequest(url: NSURL, method: HttpMethod, parameters: [String: AnyObject]?, headers: [String: String]? = nil) -> NSURLRequestParameters
urlthe url of the resource.
methodthe method to be used.
parametersthe request parameters.
headersany headers to be used on this request.
Return Value
the URLRequest object
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
View on GitHub
HttpRequestSerializer Class Reference