Response

@objc(THEOplayerResponse)
public class Response : NSObject, Codable

The response, either of a LicenseResponse or for a CertificateResponse request.

  • The request for which the response is being returned.

    Declaration

    Swift

    @objc
    public var request: Request
  • url

    The URL from which the response was returned. This might have been redirected transparently.

    Declaration

    Swift

    @objc
    public var url: String
  • The status code as returned in the HTTP response.

    Declaration

    Swift

    @objc
    public var status: Int
  • The status text as returned in the HTTP response.

    Declaration

    Swift

    @objc
    public var statusText: String
  • The HTTP headers as returned by the server.

    Declaration

    Swift

    @objc
    public var headers: [String : String]
  • The body of the response.

    Declaration

    Swift

    @objc
    public var body: Data