Response

public struct Response: URLResponse

HTTP URL response.

  • Returns a dictionary containing all the HTTP header fields.

    Declaration

    Swift

    public var headers = [String: String]()
  • Returns the HTTP status code for the response.

    Declaration

    Swift

    public var statusCode: Int = HTTP.StatusCode.OK.rawValue
  • The HTTP response body.

    Declaration

    Swift

    public var body = Data()
  • Undocumented

    Declaration

    Swift

    public struct Response: URLResponse