Skip to content

Commit e9577c5

Browse files
committed
mark HTTPClient Body and Request as Sendable
1 parent a244717 commit e9577c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AsyncHTTPClient/HTTPHandler.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import NIOSSL
2323

2424
extension HTTPClient {
2525
/// A request body.
26-
public struct Body {
26+
public struct Body: Sendable {
2727
/// A streaming uploader.
2828
///
2929
/// ``StreamWriter`` abstracts
@@ -209,7 +209,7 @@ extension HTTPClient {
209209
}
210210

211211
/// Represents an HTTP request.
212-
public struct Request {
212+
public struct Request: Sendable {
213213
/// Request HTTP method, defaults to `GET`.
214214
public let method: HTTPMethod
215215
/// Remote URL.
@@ -469,7 +469,7 @@ extension HTTPClient {
469469
}
470470
}
471471

472-
public struct RequestResponse {
472+
public struct RequestResponse: Sendable {
473473
public var request: Request
474474
public var responseHead: HTTPResponseHead
475475

0 commit comments

Comments
 (0)