URLConvertible
public protocol URLConvertible
Types adopting the URLConvertible
protocol can be used to construct URL
s, which can then be used to construct
URLRequests
.
-
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.