|
2 | 2 |
|
3 | 3 | Network layer for running requests like GET, POST, PUT, DELETE etc customizable with coders. There's ability to retry request with different strategies |
4 | 4 |
|
5 | | -[](https://swiftpackageindex.com/igor11191708/async-http-client) |
| 5 | +[](https://swiftpackageindex.com/swiftuiux/async-http-client) |
6 | 6 |
|
7 | | -## [Documentation(API)](https://swiftpackageindex.com/igor11191708/async-http-client/main/documentation/async_http_client) |
| 7 | +## [Documentation(API)](https://swiftpackageindex.com/swiftuiux/async-http-client/main/documentation/async_http_client) |
8 | 8 | or |
9 | 9 | - You need to have Xcode 13 installed in order to have access to Documentation Compiler (DocC) |
10 | 10 | - Go to Product > Build Documentation or **⌃⇧⌘ D** |
11 | 11 |
|
12 | | -## [SwiftUI example](https://github.com/igor11191708/async-http-client-example) |
| 12 | +## [SwiftUI example](https://github.com/swiftuiux/async-http-client-example) |
13 | 13 |
|
14 | 14 | ## Features |
15 | 15 | - [x] Multiplatform |
|
23 | 23 | - [x] Based on interfaces not implementations |
24 | 24 | - [x] Customizable with coders You can easily change format from json to xml or text just changing the coder |
25 | 25 |
|
26 | | -  |
| 26 | +  |
27 | 27 |
|
28 | 28 | ## Fast track |
29 | 29 |
|
@@ -124,7 +124,7 @@ Fast-track functions return **(Data, URLResponse)** if you need to validate stat |
124 | 124 |
|
125 | 125 | ## Retry strategy |
126 | 126 |
|
127 | | -This package uses stand alone package providing retry policy. The service creates sequence of the delays (nanoseconds) according to chosen strategy for more details folow the link [retry service](https://github.com/igor11191708/retry-policy-service) |
| 127 | +This package uses stand alone package providing retry policy. The service creates sequence of the delays (nanoseconds) according to chosen strategy for more details folow the link [retry service](https://github.com/swiftuiux/retry-policy-service) |
128 | 128 |
|
129 | 129 | | type | description | |
130 | 130 | | --- | --- | |
@@ -154,27 +154,27 @@ Currently is implemented for validating status code. |
154 | 154 | try await http.get(path: path, validate: [.status(.predicate(fn))]) |
155 | 155 | ``` |
156 | 156 |
|
157 | | -There's an example [replicate toolkit for swift](https://github.com/igor11191708/replicate-kit-swift) how to use it with a custom response error format that has different format then the successful response |
| 157 | +There's an example [replicate toolkit for swift](https://github.com/swiftuiux/replicate-kit-swift) how to use it with a custom response error format that has different format then the successful response |
158 | 158 |
|
159 | 159 | # The concept |
160 | 160 |
|
161 | 161 | * Proxy is defining a communication layer and responsible for exchanging data with data source. There might be Http proxy, File proxy etc or some flavors REST proxy, LongFile proxy. |
162 | 162 | * Reader and Writer are used to interpret data. |
163 | 163 |
|
164 | | -  |
| 164 | +  |
165 | 165 |
|
166 | 166 |
|
167 | 167 | ## Try it in the real environment |
168 | 168 | ### Simple server installation (mocking with NodeJS Express) |
169 | 169 |
|
170 | 170 | To try it in the real environment. I suggest installing the basic NodeJS Express boilerplate. Take a look on the video snippet how easy it is to get it through Webstorm that is accessible for free for a trial period. |
171 | 171 |
|
172 | | -[](https://youtu.be/9FPOYHzcE7A) |
| 172 | +[](https://youtu.be/9FPOYHzcE7A) |
173 | 173 |
|
174 | 174 | - Get [**WebStorm Early Access**](https://www.jetbrains.com/webstorm/nextversion) |
175 | | -- Get [**index.js**](https://github.com/igor11191708/d3-network-service/blob/main/js/index.js) file from here and replace it with the one in the boilerplate and launch the server. |
| 175 | +- Get [**index.js**](https://github.com/swiftuiux/d3-network-service/blob/main/js/index.js) file from here and replace it with the one in the boilerplate and launch the server. |
176 | 176 |
|
177 | 177 |
|
178 | 178 | ## Used by packages |
179 | 179 |
|
180 | | -[Replicate toolkit for swift](https://github.com/igor11191708/replicate-kit-swift) |
| 180 | +[Replicate toolkit for swift](https://github.com/swiftuiux/replicate-kit-swift) |
0 commit comments