An open API service indexing awesome lists of open source software.

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

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|
|:-:|:-:|
|![light-mode](./screenshots/light-mode.png)|![dark-mode](./screenshots/dark-mode.png)|

## 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)