Package brave.http
Class HttpClientRequest
- java.lang.Object
-
- brave.Request
-
- brave.http.HttpRequest
-
- brave.http.HttpClientRequest
-
public abstract class HttpClientRequest extends HttpRequest
Marks an interface for use inHttpClientHandler.handleSend(HttpClientRequest). This gives a standard type to consider when parsing an outgoing context.- Since:
- 5.7
- See Also:
HttpClientResponse
-
-
Constructor Summary
Constructors Constructor Description HttpClientRequest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidheader(String name, String value)Sets a request header with the indicated name.Span.KindspanKind()-
Methods inherited from class brave.http.HttpRequest
header, method, path, route, startTimestamp, url
-
-
-
-
Method Detail
-
header
public abstract void header(String name, String value)
Sets a request header with the indicated name.nullvalues are unsupported.This is only used when
injectinga trace context as internally implemented byHttpClientHandler. Calls during sampling or parsing are invalid and may be ignored by instrumentation.- Since:
- 5.7
- See Also:
SETTER
-
-