https://github.com/zddhub/url-loading-system
URL Loading System
https://github.com/zddhub/url-loading-system
Last synced: over 1 year ago
JSON representation
URL Loading System
- Host: GitHub
- URL: https://github.com/zddhub/url-loading-system
- Owner: zddhub
- License: mit
- Created: 2022-05-07T14:03:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-10T15:10:18.000Z (about 4 years ago)
- Last Synced: 2025-01-22T16:32:01.621Z (over 1 year ago)
- Language: Swift
- Homepage: https://zddhub.com/note/2022/05/04/url-loading-system.html
- Size: 302 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# url-loading-system
Explore [`URL Loading System`](https://developer.apple.com/documentation/foundation/url_loading_system).
Read article on [blog (cn)](https://zddhub.com/note/2022/05/04/url-loading-system.html)
## Screenshots
|Light Mode|Dark Mode|
|:-:|:-:|
|||
## API Overviews

*Notice: See above SVG image only on light mode, it can be zoomed in/out.*
### Type
| Task type | Combine API | Async API | Completion Handler API | Normal API |
|:-|:-|:-|:-|:-|
|`URLSessionDataTask` | ✅ | ✅ | ✅ | ✅ |
|`URLSessionUploadTask` | - | ✅ | ✅ | ✅ |
|`URLSessionDownloadTask` | - | ✅ | ✅ | ✅ |
|`URLSessionStreamTask` | - | - | - | ✅ |
|`URLSessionWebSocketTask` | - | - | - | ✅ |
## Cheat Sheet
- [Combine API](./UrlLoadingSystem/LoadingMethod/CombineApi.swift)
- [Async API](./UrlLoadingSystem/LoadingMethod/AsyncApi.swift)
- [Completion Handler API](./UrlLoadingSystem/LoadingMethod/CompletionHandlerApi.swift)
- [Normal API](./UrlLoadingSystem/LoadingMethod/NormalApi.swift)