Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ open class URLSessionHTTPClient: NSObject, HTTPClientInterface {

@discardableResult
open func unary(
request: HTTPRequest, completion: @escaping (HTTPResponse) -> Void
request: HTTPRequest, completion: @Sendable @escaping (HTTPResponse) -> Void
) -> Cancelable {
let urlRequest = URLRequest(httpRequest: request)
let task = self.session.dataTask(with: urlRequest) { data, urlResponse, error in
Expand Down
3 changes: 2 additions & 1 deletion Libraries/Connect/Interfaces/HTTPClientInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public protocol HTTPClientInterface {
///
/// - returns: A type which can be used to cancel the outbound request.
@discardableResult
func unary(request: HTTPRequest, completion: @escaping (HTTPResponse) -> Void) -> Cancelable
func unary(request: HTTPRequest, completion: @Sendable @escaping (HTTPResponse) -> Void)
-> Cancelable

/// Initialize a new HTTP stream.
///
Expand Down