Response
open class Response : NSObject
Represents Http response
-
HTTP status code
Declaration
Swift
public let statusCode: Int
-
HTTP response
Declaration
Swift
public let response: HTTPURLResponse
-
Response body
Declaration
Swift
public let body: Data?
-
Initializer
Declaration
Swift
public init(statusCode: Int, response: HTTPURLResponse, body: Data?)
Parameters
statusCode
HTTP status code
response
HTTP response
body
HTTP response body