URLRequestConvertible
public protocol URLRequestConvertible : Sendable
Types adopting the URLRequestConvertible protocol can be used to safely construct URLRequests.
-
Returns a
URLRequestor throws if anErrorwas encountered.Throws
Any error thrown while constructing theURLRequest.Declaration
Swift
func asURLRequest() throws -> URLRequestReturn Value
A
URLRequest. -
urlRequestExtension methodThe
URLRequestreturned by discarding anyErrorencountered.Declaration
Swift
public var urlRequest: URLRequest? { get }
View on GitHub
Install in Dash