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 var status: Int
  • HTTP headers of the response.

    Declaration

    Swift

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

    Declaration

    Swift

    public var body: Data?