Skip to content

Commit

Permalink
Client Response should be Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed May 21, 2024
1 parent 8a93fc9 commit a3e8acc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Vapor/Client/ClientResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import NIOCore
import NIOHTTP1
import Foundation

public struct ClientResponse {
public struct ClientResponse: Sendable {
public var status: HTTPStatus
public var headers: HTTPHeaders
public var body: ByteBuffer?
Expand Down
1 change: 1 addition & 0 deletions Sources/Vapor/HTTP/Client/Application+HTTP+Client.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import AsyncHTTPClient

extension Application.Clients.Provider {
@available(*, noasync, message: "Don't use from an async context")
public static var http: Self {
.init {
$0.clients.use {
Expand Down

0 comments on commit a3e8acc

Please sign in to comment.