HTTPRequest
public struct HTTPRequest : HTTPRequestCompatible
A URL load request.
-
The separator value is 0x0a.
Declaration
Swift
public static let separator: UInt8
-
Specifies the uri to request.
Declaration
Swift
public var uri: String
-
Specifies the http method.
Declaration
Swift
public var method: String
-
Specifies the version of the HTTP.
Declaration
Swift
public var version: String
-
Specifies the header field.
Declaration
Swift
public var headerFields: [String : String]
-
Specifies the http body.
Declaration
Swift
public var body: Data?