Skip to content

Commit 3c7b0fd

Browse files
committed
Don't use metadata to document BaggageContext 📖
1 parent 8d90874 commit 3c7b0fd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎Sources/AsyncHTTPClient/HTTPClient.swift

+12-12
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public class HTTPClient {
230230
///
231231
/// - parameters:
232232
/// - url: Remote URL.
233-
/// - context: Metadata propagated for instrumentation.
233+
/// - context: Baggage context associated with this request
234234
/// - deadline: Point in time by which the request must complete.
235235
public func get(url: String, context: BaggageContext, deadline: NIODeadline? = nil) -> EventLoopFuture<Response> {
236236
return self.execute(.GET, url: url, context: context, deadline: deadline)
@@ -240,7 +240,7 @@ public class HTTPClient {
240240
///
241241
/// - parameters:
242242
/// - url: Remote URL.
243-
/// - context: Metadata propagated for instrumentation.
243+
/// - context: Baggage context associated with this request
244244
/// - body: Request body.
245245
/// - deadline: Point in time by which the request must complete.
246246
public func post(url: String, context: BaggageContext, body: Body? = nil, deadline: NIODeadline? = nil) -> EventLoopFuture<Response> {
@@ -251,7 +251,7 @@ public class HTTPClient {
251251
///
252252
/// - parameters:
253253
/// - url: Remote URL.
254-
/// - context: Metadata propagated for instrumentation.
254+
/// - context: Baggage context associated with this request
255255
/// - body: Request body.
256256
/// - deadline: Point in time by which the request must complete.
257257
public func patch(url: String, context: BaggageContext, body: Body? = nil, deadline: NIODeadline? = nil) -> EventLoopFuture<Response> {
@@ -262,7 +262,7 @@ public class HTTPClient {
262262
///
263263
/// - parameters:
264264
/// - url: Remote URL.
265-
/// - context: Metadata propagated for instrumentation.
265+
/// - context: Baggage context associated with this request
266266
/// - body: Request body.
267267
/// - deadline: Point in time by which the request must complete.
268268
public func put(url: String, context: BaggageContext, body: Body? = nil, deadline: NIODeadline? = nil) -> EventLoopFuture<Response> {
@@ -273,7 +273,7 @@ public class HTTPClient {
273273
///
274274
/// - parameters:
275275
/// - url: Remote URL.
276-
/// - context: Metadata propagated for instrumentation.
276+
/// - context: Baggage context associated with this request
277277
/// - deadline: The time when the request must have been completed by.
278278
public func delete(url: String, context: BaggageContext, deadline: NIODeadline? = nil) -> EventLoopFuture<Response> {
279279
return self.execute(.DELETE, url: url, context: context, deadline: deadline)
@@ -284,7 +284,7 @@ public class HTTPClient {
284284
/// - parameters:
285285
/// - method: Request method.
286286
/// - url: Request url.
287-
/// - context: Metadata propagated for instrumentation.
287+
/// - context: Baggage context associated with this request
288288
/// - body: Request body.
289289
/// - deadline: Point in time by which the request must complete.
290290
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 {
302302
/// - method: Request method.
303303
/// - socketPath: The path to the unix domain socket to connect to.
304304
/// - 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
306306
/// - body: Request body.
307307
/// - deadline: Point in time by which the request must complete.
308308
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 {
323323
/// - method: Request method.
324324
/// - secureSocketPath: The path to the unix domain socket to connect to.
325325
/// - 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
327327
/// - body: Request body.
328328
/// - deadline: Point in time by which the request must complete.
329329
/// - logger: The logger to use for this request.
@@ -343,7 +343,7 @@ public class HTTPClient {
343343
///
344344
/// - parameters:
345345
/// - request: HTTP request to execute.
346-
/// - context: Metadata propagated for instrumentation.
346+
/// - context: Baggage context associated with this request
347347
/// - deadline: Point in time by which the request must complete.
348348
public func execute(request: Request, context: BaggageContext, deadline: NIODeadline? = nil) -> EventLoopFuture<Response> {
349349
let accumulator = ResponseAccumulator(request: request)
@@ -355,7 +355,7 @@ public class HTTPClient {
355355
/// - parameters:
356356
/// - request: HTTP request to execute.
357357
/// - eventLoop: NIO Event Loop preference.
358-
/// - context: Metadata propagated for instrumentation.
358+
/// - context: Baggage context associated with this request
359359
/// - deadline: Point in time by which the request must complete.
360360
public func execute(request: Request, eventLoop: EventLoopPreference, context: BaggageContext, deadline: NIODeadline? = nil) -> EventLoopFuture<Response> {
361361
let accumulator = ResponseAccumulator(request: request)
@@ -367,7 +367,7 @@ public class HTTPClient {
367367
/// - parameters:
368368
/// - request: HTTP request to execute.
369369
/// - delegate: Delegate to process response parts.
370-
/// - context: Metadata propagated for instrumentation.
370+
/// - context: Baggage context associated with this request
371371
/// - deadline: Point in time by which the request must complete.
372372
public func execute<Delegate: HTTPClientResponseDelegate>(request: Request,
373373
delegate: Delegate,
@@ -382,7 +382,7 @@ public class HTTPClient {
382382
/// - request: HTTP request to execute.
383383
/// - delegate: Delegate to process response parts.
384384
/// - eventLoop: NIO Event Loop preference.
385-
/// - context: Metadata propagated for instrumentation.
385+
/// - context: Baggage context associated with this request
386386
/// - deadline: Point in time by which the request must complete.
387387
public func execute<Delegate: HTTPClientResponseDelegate>(request: Request,
388388
delegate: Delegate,

0 commit comments

Comments
 (0)