Skip to content

Commit 0b5bec7

Browse files
authored
Replace NIOSendable with Sendable (#640)
1 parent 9195d3b commit 0b5bec7

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Sources/AsyncHTTPClient/ConnectionPool/RequestBodyLength.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import NIOCore
1616

1717
/// - Note: use `HTTPClientRequest.Body.Length` if you want to expose `RequestBodyLength` publicly
1818
@usableFromInline
19-
internal enum RequestBodyLength: Hashable, NIOSendable {
19+
internal enum RequestBodyLength: Hashable, Sendable {
2020
/// size of the request body is not known before starting the request
2121
case unknown
2222
/// size of the request body is fixed and exactly `count` bytes

Sources/AsyncHTTPClient/HTTPClient+HTTPCookie.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import NIOCore
2323

2424
extension HTTPClient {
2525
/// A representation of an HTTP cookie.
26-
public struct Cookie: NIOSendable {
26+
public struct Cookie: Sendable {
2727
/// The name of the cookie.
2828
public var name: String
2929
/// The cookie's string value.

Sources/AsyncHTTPClient/HTTPClient+Proxy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extension HTTPClient.Configuration {
2525
/// If a `TLSConfiguration` is used in conjunction with `HTTPClient.Configuration.Proxy`,
2626
/// TLS will be established _after_ successful proxy, between your client
2727
/// and the destination server.
28-
public struct Proxy: NIOSendable, Hashable {
28+
public struct Proxy: Sendable, Hashable {
2929
enum ProxyType: Hashable {
3030
case http(HTTPClient.Authorization?)
3131
case socks

Sources/AsyncHTTPClient/HTTPClient.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ public class HTTPClient {
875875
}
876876

877877
/// Specifies decompression settings.
878-
public enum Decompression: NIOSendable {
878+
public enum Decompression: Sendable {
879879
/// Decompression is disabled.
880880
case disabled
881881
/// Decompression is enabled.
@@ -911,7 +911,7 @@ extension HTTPClient: @unchecked Sendable {}
911911

912912
extension HTTPClient.Configuration {
913913
/// Timeout configuration.
914-
public struct Timeout: NIOSendable {
914+
public struct Timeout: Sendable {
915915
/// Specifies connect timeout. If no connect timeout is given, a default 30 seconds timeout will applied.
916916
public var connect: TimeAmount?
917917
/// Specifies read timeout.
@@ -934,7 +934,7 @@ extension HTTPClient.Configuration {
934934
}
935935

936936
/// Specifies redirect processing settings.
937-
public struct RedirectConfiguration: NIOSendable {
937+
public struct RedirectConfiguration: Sendable {
938938
enum Mode {
939939
/// Redirects are not followed.
940940
case disallow
@@ -966,7 +966,7 @@ extension HTTPClient.Configuration {
966966
}
967967

968968
/// Connection pool configuration.
969-
public struct ConnectionPool: Hashable, NIOSendable {
969+
public struct ConnectionPool: Hashable, Sendable {
970970
/// Specifies amount of time connections are kept idle in the pool. After this time has passed without a new
971971
/// request the connections are closed.
972972
public var idleTimeout: TimeAmount
@@ -995,7 +995,7 @@ extension HTTPClient.Configuration {
995995
}
996996
}
997997

998-
public struct HTTPVersion: NIOSendable, Hashable {
998+
public struct HTTPVersion: Sendable, Hashable {
999999
internal enum Configuration {
10001000
case http1Only
10011001
case automatic

Sources/AsyncHTTPClient/HTTPHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ extension HTTPClient {
311311
}
312312

313313
/// HTTP authentication.
314-
public struct Authorization: Hashable, NIOSendable {
314+
public struct Authorization: Hashable, Sendable {
315315
private enum Scheme: Hashable {
316316
case Basic(String)
317317
case Bearer(String)

0 commit comments

Comments
 (0)