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 -> URLRequestReturn Value
A URL request.
-
urlRequestExtension methodThe URL request.
Declaration
Swift
public var urlRequest: URLRequest? { get }
URLRequestConvertible Protocol Reference