@@ -230,7 +230,7 @@ public class HTTPClient {
230
230
///
231
231
/// - parameters:
232
232
/// - url: Remote URL.
233
- /// - context: Metadata propagated for instrumentation.
233
+ /// - context: Baggage context associated with this request
234
234
/// - deadline: Point in time by which the request must complete.
235
235
public func get( url: String , context: BaggageContext , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
236
236
return self . execute ( . GET, url: url, context: context, deadline: deadline)
@@ -240,7 +240,7 @@ public class HTTPClient {
240
240
///
241
241
/// - parameters:
242
242
/// - url: Remote URL.
243
- /// - context: Metadata propagated for instrumentation.
243
+ /// - context: Baggage context associated with this request
244
244
/// - body: Request body.
245
245
/// - deadline: Point in time by which the request must complete.
246
246
public func post( url: String , context: BaggageContext , body: Body ? = nil , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
@@ -251,7 +251,7 @@ public class HTTPClient {
251
251
///
252
252
/// - parameters:
253
253
/// - url: Remote URL.
254
- /// - context: Metadata propagated for instrumentation.
254
+ /// - context: Baggage context associated with this request
255
255
/// - body: Request body.
256
256
/// - deadline: Point in time by which the request must complete.
257
257
public func patch( url: String , context: BaggageContext , body: Body ? = nil , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
@@ -262,7 +262,7 @@ public class HTTPClient {
262
262
///
263
263
/// - parameters:
264
264
/// - url: Remote URL.
265
- /// - context: Metadata propagated for instrumentation.
265
+ /// - context: Baggage context associated with this request
266
266
/// - body: Request body.
267
267
/// - deadline: Point in time by which the request must complete.
268
268
public func put( url: String , context: BaggageContext , body: Body ? = nil , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
@@ -273,7 +273,7 @@ public class HTTPClient {
273
273
///
274
274
/// - parameters:
275
275
/// - url: Remote URL.
276
- /// - context: Metadata propagated for instrumentation.
276
+ /// - context: Baggage context associated with this request
277
277
/// - deadline: The time when the request must have been completed by.
278
278
public func delete( url: String , context: BaggageContext , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
279
279
return self . execute ( . DELETE, url: url, context: context, deadline: deadline)
@@ -284,7 +284,7 @@ public class HTTPClient {
284
284
/// - parameters:
285
285
/// - method: Request method.
286
286
/// - url: Request url.
287
- /// - context: Metadata propagated for instrumentation.
287
+ /// - context: Baggage context associated with this request
288
288
/// - body: Request body.
289
289
/// - deadline: Point in time by which the request must complete.
290
290
public func execute( _ method: HTTPMethod = . GET, url: String , context: BaggageContext , body: Body ? = nil , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
@@ -302,7 +302,7 @@ public class HTTPClient {
302
302
/// - method: Request method.
303
303
/// - socketPath: The path to the unix domain socket to connect to.
304
304
/// - urlPath: The URL path and query that will be sent to the server.
305
- /// - context: Metadata propagated for instrumentation.
305
+ /// - context: Baggage context associated with this request
306
306
/// - body: Request body.
307
307
/// - deadline: Point in time by which the request must complete.
308
308
public func execute( _ method: HTTPMethod = . GET, socketPath: String , urlPath: String , context: BaggageContext , body: Body ? = nil , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
@@ -323,7 +323,7 @@ public class HTTPClient {
323
323
/// - method: Request method.
324
324
/// - secureSocketPath: The path to the unix domain socket to connect to.
325
325
/// - urlPath: The URL path and query that will be sent to the server.
326
- /// - context: Metadata propagated for instrumentation.
326
+ /// - context: Baggage context associated with this request
327
327
/// - body: Request body.
328
328
/// - deadline: Point in time by which the request must complete.
329
329
/// - logger: The logger to use for this request.
@@ -343,7 +343,7 @@ public class HTTPClient {
343
343
///
344
344
/// - parameters:
345
345
/// - request: HTTP request to execute.
346
- /// - context: Metadata propagated for instrumentation.
346
+ /// - context: Baggage context associated with this request
347
347
/// - deadline: Point in time by which the request must complete.
348
348
public func execute( request: Request , context: BaggageContext , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
349
349
let accumulator = ResponseAccumulator ( request: request)
@@ -355,7 +355,7 @@ public class HTTPClient {
355
355
/// - parameters:
356
356
/// - request: HTTP request to execute.
357
357
/// - eventLoop: NIO Event Loop preference.
358
- /// - context: Metadata propagated for instrumentation.
358
+ /// - context: Baggage context associated with this request
359
359
/// - deadline: Point in time by which the request must complete.
360
360
public func execute( request: Request , eventLoop: EventLoopPreference , context: BaggageContext , deadline: NIODeadline ? = nil ) -> EventLoopFuture < Response > {
361
361
let accumulator = ResponseAccumulator ( request: request)
@@ -367,7 +367,7 @@ public class HTTPClient {
367
367
/// - parameters:
368
368
/// - request: HTTP request to execute.
369
369
/// - delegate: Delegate to process response parts.
370
- /// - context: Metadata propagated for instrumentation.
370
+ /// - context: Baggage context associated with this request
371
371
/// - deadline: Point in time by which the request must complete.
372
372
public func execute< Delegate: HTTPClientResponseDelegate > ( request: Request ,
373
373
delegate: Delegate ,
@@ -382,7 +382,7 @@ public class HTTPClient {
382
382
/// - request: HTTP request to execute.
383
383
/// - delegate: Delegate to process response parts.
384
384
/// - eventLoop: NIO Event Loop preference.
385
- /// - context: Metadata propagated for instrumentation.
385
+ /// - context: Baggage context associated with this request
386
386
/// - deadline: Point in time by which the request must complete.
387
387
public func execute< Delegate: HTTPClientResponseDelegate > ( request: Request ,
388
388
delegate: Delegate ,
0 commit comments