Skip to content

Commit 4470403

Browse files
committed
Update README.md
1 parent 8b1391d commit 4470403

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ Network layer for running requests like GET, POST, PUT, DELETE etc customizable
6262
### Custom request
6363

6464
```swift
65-
/// Send custom request based on the specific request instance
66-
/// - Parameters:
67-
/// - request: A URL load request that is independent of protocol or URL scheme
68-
/// - retry: ``RetryService.Strategy`` Default value .exponential with 5 retry and duration 2.0
69-
/// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
70-
public func send<T>(
71-
with request : URLRequest,
72-
retry strategy : RetryService.Strategy = .exponential(retry: 5, duration: 2.0),
73-
_ taskDelegate: ITaskDelegate? = nil
74-
) async throws -> Http.Response<T> where T : Decodable
65+
/// Send custom request based on the specific request instance
66+
/// - Parameters:
67+
/// - request: A URL load request that is independent of protocol or URL scheme
68+
/// - retry: ``RetryService.Strategy`` Default value .exponential with 5 retry and duration 2.0
69+
/// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
70+
public func send<T>(
71+
with request : URLRequest,
72+
retry strategy : RetryService.Strategy = .exponential(retry: 5, duration: 2.0),
73+
_ taskDelegate: ITaskDelegate? = nil
74+
) async throws -> Http.Response<T> where T : Decodable
7575
```
7676

7777
## Retry strategy

0 commit comments

Comments
 (0)