HttpResponse

@objc(BMPHttpResponse)
@objcMembers
public final class HttpResponse : NSObject

Represents an HTTP response.

  • Corresponding HTTP request object of the response.

    Declaration

    Swift

    public let request: HttpRequest
  • url

    URL of the actual request. May differ from request.url when redirects have happened.

    Declaration

    Swift

    public let url: URL
  • HTTP status code of the response.

    Declaration

    Swift

    public let status: Int
  • HTTP headers of the response.

    Declaration

    Swift

    public let headers: [String : String]
  • HTTP response body.

    Declaration

    Swift

    public let body: Data?