Skip to content

Commit 69564cc

Browse files
Trevörtanner0101
authored andcommitted
Rename references of HTTPClientConfiguration to HTTPClient.Configuration (#19)
1 parent 150216e commit 69564cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ httpClient.execute(request: request).whenComplete { result in
9292
Enable follow-redirects behavior using the client configuration:
9393
```swift
9494
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew,
95-
configuration: HTTPClientConfiguration(followRedirects: true))
95+
configuration: HTTPClient.Configuration(followRedirects: true))
9696
```
9797

9898
### Timeouts
9999
Timeouts (connect and read) can also be set using the client configuration:
100100
```swift
101101
let timeout = Timeout(connectTimeout: .seconds(1), readTimeout: .seconds(1))
102102
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew,
103-
configuration: HTTPClientConfiguration(timeout: timeout))
103+
configuration: HTTPClient.Configuration(timeout: timeout))
104104
```
105105
or on per-request basis:
106106
```swift

Sources/NIOHTTPClient/HTTPClientProxyHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
///

0 commit comments

Comments
 (0)