File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,15 @@ httpClient.execute(request: request).whenComplete { result in
92
92
Enable follow-redirects behavior using the client configuration:
93
93
``` swift
94
94
let httpClient = HTTPClient (eventLoopGroupProvider : .createNew ,
95
- configuration : HTTPClientConfiguration (followRedirects : true ))
95
+ configuration : HTTPClient. Configuration (followRedirects : true ))
96
96
```
97
97
98
98
### Timeouts
99
99
Timeouts (connect and read) can also be set using the client configuration:
100
100
``` swift
101
101
let timeout = Timeout (connectTimeout : .seconds (1 ), readTimeout : .seconds (1 ))
102
102
let httpClient = HTTPClient (eventLoopGroupProvider : .createNew ,
103
- configuration : HTTPClientConfiguration (timeout : timeout))
103
+ configuration : HTTPClient. Configuration (timeout : timeout))
104
104
```
105
105
or on per-request basis:
106
106
``` swift
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import NIOHTTP1
17
17
18
18
/// Specifies the remote address of an HTTP proxy.
19
19
///
20
- /// Adding an `HTTPClientProxy` to your client's `HTTPClientConfiguration `
20
+ /// Adding an `HTTPClientProxy` to your client's `HTTPClient.Configuration `
21
21
/// will cause requests to be passed through the specified proxy using the
22
22
/// HTTP `CONNECT` method.
23
23
///
You can’t perform that action at this time.
0 commit comments