This organization was marked as archived by an administrator on Oct 16, 2024. It is no longer maintained.
Replies: 1 comment
-
This is being moved to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
The goal is to add additional settings for requests that respect the capabilities of each device. URLSession is an excellent example of the options available to developers.
allowsCellularAccess: Bool
Allows/prevents executing a request using cellular data.
allowsExpensiveNetworkAccess: Bool
Allows/prevents executing a request on a network interface labeled by the operating system as expensive.
allowsConstrainedNetworkAccess: Bool
Allows/prevents executing a request when the data-saving option is active.
waitsForConnectivity: Bool
Waits for the device to be connected to the internet before executing the request.
Points to Consider
In a preliminary assessment, to implement these features in RequestDL, it will be necessary to use the Network framework, which is also used by AsyncHTTPClient to provide
waitsForConnectivity
.Therefore, before starting the implementation, it is important to verify if it is possible to achieve the same results using Swift and other available APIs to deliver the features also on Linux. Otherwise, it will be necessary to update the code and make the methods related to the Apple Network framework unavailable.
Milestone: 3.0.4
Beta Was this translation helpful? Give feedback.
All reactions