URLRequestConvertible

public protocol URLRequestConvertible

Types adopting the URLRequestConvertible protocol can be used to construct URL requests.

  • Returns a URL request or throws if an Error was encountered.

    Throws

    An Error if the underlying URLRequest is nil.

    Declaration

    Swift

    func asURLRequest() throws -> URLRequest