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, startTimestamp, url
-
-
-
-
Method Detail
-
header
@Nullable public abstract void header(String name, String value)
Sets a request header with the indicated name. Null values are unsupported. This is only used wheninjectinga trace context as internally implemented by {link HttpClientHandler}. Calls during sampling or parsing are invalid.- Since:
- 5.7
- See Also:
SETTER
-
-