String
extension String: URLConvertible
-
Returns a
URL
ifself
can be used to initialize aURL
instance, otherwise throws.Throws
AnAFError.invalidURL
instance.Declaration
Swift
public func asURL() throws -> URL
Return Value
The
URL
initialized withself
.