HTTPURLResponse

class HTTPURLResponse : URLResponse
  • A type-safe HTTP status.

    Declaration

    Swift

    public var status: Http.Status { get }
  • Construct an HTTP error from the current status and the description.

    Declaration

    Swift

    public var unexpected: Http.Error { get }