RequestNetworking
public protocol RequestNetworking
Network handling for a single request. Created by a NetworkingProvider
. Implementations have three responsibilities:
- start the request on creation,
- call the closure passed to
NetworkingProvider.startRequest(...)
when the request is complete, and - optionally support cancelling requests in progress.
-
Cancel this request, if possible.
Declaration
Swift
func cancel()
-
Returns raw data used for progress calculation.
Declaration
Swift
var transferMetrics: RequestTransferMetrics { get }