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) -> NSURLRequest
Parameters
url
the url of the resource.
method
the method to be used.
parameters
the request parameters.
headers
any 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) -> NSURLRequest
Parameters
url
the url of the resource.
method
the method to be used.
parameters
the request parameters.
headers
any headers to be used on this request.
Return Value
the URLRequest object
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented