String struct String asURL() Returns a URL if self represents a valid URL string that conforms to RFC 2396 or throws an AFError. Throws An AFError.invalidURL if self is not a valid URL string. Declaration Swift public func asURL() throws -> URL Return Value A URL or throws an AFError.