Skip to content

Commit 7ed3dce

Browse files
committed
update
1 parent 05e5e07 commit 7ed3dce

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Sources/async-http-client/proxy/helper/RequestHelper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Foundation
1616
/// - body: The data sent as the message body of a request, such as for an HTTP POST or PUT requests
1717
/// - headers: A dictionary containing all of the HTTP header fields for a request
1818
/// - Returns: A URL load request
19-
func buildURLRequest(
19+
internal func buildURLRequest(
2020
_ baseURL : URL,
2121
for path: String,
2222
method : Http.Method = .get,
@@ -54,7 +54,7 @@ func buildURLRequest(
5454
/// - body: The data sent as the message body of a request, such as for an HTTP POST or PUT requests
5555
/// - headers: A dictionary containing all of the HTTP header fields for a request
5656
/// - Returns: A URL load request
57-
func buildURLRequest(
57+
internal func buildURLRequest(
5858
for url : URL,
5959
method : Http.Method = .get,
6060
query : Http.Query? = nil,

Sources/async-http-client/proxy/helper/SendHelper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import retry_policy_service
1212
/// - request: A URL load request that is independent of protocol or URL scheme
1313
/// - retry: ``RetryService`` strategy
1414
/// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15-
func sendRetry(
15+
internal func sendRetry(
1616
with request : URLRequest,
1717
retry strategy : RetryService.Strategy,
1818
_ taskDelegate: ITaskDelegate? = nil,

Sources/async-http-client/proxy/helper/UrlHelper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import retry_policy_service
1313
/// - url: url
1414
/// - query: An array of name-value pairs
1515
/// - Returns: A value that identifies the location of a resource
16-
func append(_ url: URL,with query : Http.Query? = nil) throws -> URL{
16+
internal func append(_ url: URL,with query : Http.Query? = nil) throws -> URL{
1717

1818
guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true)else{
1919
throw URLError(.badURL)
@@ -33,7 +33,7 @@ func append(_ url: URL,with query : Http.Query? = nil) throws -> URL{
3333
/// - path: Path
3434
/// - query: An array of name-value pairs
3535
/// - Returns: A value that identifies the location of a resource
36-
func buildURL(baseURL: URL, for path: String, query : Http.Query? = nil) throws -> URL{
36+
internal func buildURL(baseURL: URL, for path: String, query : Http.Query? = nil) throws -> URL{
3737

3838
guard let url = URL(string: path, relativeTo: baseURL)else{
3939
throw URLError(.badURL)

Sources/async-http-client/proxy/http/Direct.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public extension Http{
2121
let request = try buildURLRequest(for: url, query: query, headers: headers)
2222
let strategy = RetryService.Strategy.exponential(retry: retry)
2323

24-
return try await sendRetry(with: request, retry: strategy)
24+
return try await sendRetry(with: request, retry: strategy, taskDelegate)
2525
}
2626
}
2727

@@ -37,7 +37,7 @@ public extension Http{
3737
let request = try buildURLRequest(for: url, method: .post, query: query, body: body, headers: headers)
3838
let strategy = RetryService.Strategy.exponential(retry: retry)
3939

40-
return try await sendRetry(with: request, retry: strategy)
40+
return try await sendRetry(with: request, retry: strategy, taskDelegate)
4141
}
4242
}
4343

@@ -53,7 +53,7 @@ public extension Http{
5353
let request = try buildURLRequest(for: url, method: .put, query: query, body: body, headers: headers)
5454
let strategy = RetryService.Strategy.exponential(retry: retry)
5555

56-
return try await sendRetry(with: request, retry: strategy)
56+
return try await sendRetry(with: request, retry: strategy, taskDelegate)
5757
}
5858
}
5959

@@ -68,7 +68,7 @@ public extension Http{
6868
let request = try buildURLRequest(for: url, method: .delete, query: query, headers: headers)
6969
let strategy = RetryService.Strategy.exponential(retry: retry)
7070

71-
return try await sendRetry(with: request, retry: strategy)
71+
return try await sendRetry(with: request, retry: strategy, taskDelegate)
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)