URLSession
extension URLSession: HTTPSession
-
Declaration
Swift
public func sessionDataTask( with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void ) -> HTTPSessionDataTask
-
data(for:
Asynchronous) Declaration
Swift
public func data(for request: URLRequest) async throws -> (Data, URLResponse)