HTTPSession
public protocol HTTPSession
A shell protocol. Primarily used to make testing easier.
-
Declaration
Swift
var delegate: URLSessionDelegate? { get }
-
Declaration
Swift
func sessionDataTask( with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void ) -> HTTPSessionDataTask
-
data(for:
Asynchronous) Declaration
Swift
func data(for request: URLRequest) async throws -> (Data, URLResponse)