URLComponents
struct URLComponents : ReferenceConvertible, Hashable, Equatable, _MutableBoxing
-
Returns a URL if
url
is not nil, otherwise throws anError
.Throws
An
AFError.invalidURL
ifurl
isnil
.Declaration
Swift
public func asURL() throws -> URL
Return Value
A URL or throws an
AFError
.