URLConvertible
public protocol URLConvertible : Sendable
Types adopting the URLConvertible
protocol can be used to construct URL
s, which can then be used to construct
URLRequest
s.
-
Returns a
URL
from the conforming instance or throws.Throws
Any error thrown while creating theURL
.Declaration
Swift
func asURL() throws -> URL
Return Value
The
URL
created from the instance.