URLConvertible - SwiftDocOrg/Alamofire GitHub Wiki
URLConvertible
Types adopting the URLConvertible protocol can be used to construct URLs, which can then be used to construct
URLRequests.
public protocol URLConvertible
Requirements
asURL()
Returns a URL from the conforming instance or throws.
func asURL() throws -> URL
Throws
Any error thrown while creating the URL.
Returns
The URL created from the instance.