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

    Return Value

    A URL request.

  • urlRequest Extension method

    The URL request.

    Declaration

    Swift

    public var urlRequest: URLRequest? { get }