HttpResponse

extension HttpResponse
  • Initialize a response given the initial request and HttpResponseData or HttpRequestError

    Declaration

    Swift

    public convenience init(request: HttpRequest, result: Result<HttpResponseData, HttpRequestError>)

    Parameters

    request

    Original request

    result

    Result type encapsulating response or error

  • Result of HTTP request call.

    Declaration

    Swift

    public var result: Result<HttpResponseData, HttpRequestError> { get }