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
9292Enable follow-redirects behavior using the client configuration:
9393``` swift
9494let httpClient = HTTPClient (eventLoopGroupProvider : .createNew ,
95- configuration : HTTPClientConfiguration (followRedirects : true ))
95+ configuration : HTTPClient. Configuration (followRedirects : true ))
9696```
9797
9898### Timeouts
9999Timeouts (connect and read) can also be set using the client configuration:
100100``` swift
101101let timeout = Timeout (connectTimeout : .seconds (1 ), readTimeout : .seconds (1 ))
102102let httpClient = HTTPClient (eventLoopGroupProvider : .createNew ,
103- configuration : HTTPClientConfiguration (timeout : timeout))
103+ configuration : HTTPClient. Configuration (timeout : timeout))
104104```
105105or on per-request basis:
106106``` swift
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import NIOHTTP1
1717
1818/// Specifies the remote address of an HTTP proxy.
1919///
20- /// Adding an `HTTPClientProxy` to your client's `HTTPClientConfiguration `
20+ /// Adding an `HTTPClientProxy` to your client's `HTTPClient.Configuration `
2121/// will cause requests to be passed through the specified proxy using the
2222/// HTTP `CONNECT` method.
2323///
You can’t perform that action at this time.
0 commit comments