URLRequestConvertible
public protocol URLRequestConvertible
Types adopting the URLRequestConvertible protocol can be used to construct URL requests.
-
Returns a URL request or throws if an
Errorwas encountered.Throws
An
Errorif the underlyingURLRequestisnil.Declaration
Swift
func asURLRequest() throws -> URLRequest
-
urlRequestExtension methodThe URL request.
Declaration
Swift
public var urlRequest: URLRequest?
View on GitHub
URLRequestConvertible Protocol Reference