URLConvertible Protocol Reference
public protocol URLConvertible
A protocol used to receive requests with String/URL/URLComponents intercheangebly
-
Converts this object to a URL.
Throws
An error if the conversion fails.Declaration
Swift
func asUrl() throws -> URLReturn Value
The URL representation.