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 underlyingURLRequest
isnil
.Declaration
Swift
func asURLRequest() throws -> URLRequest
-
urlRequest
Extension methodThe URL request.
Declaration
Swift
public var urlRequest: URLRequest?