- java.lang.Object
-
- 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 Modifier and Type Method Description abstract voidheader(java.lang.String name, java.lang.String value)Sets a request header with the indicated name.-
Methods inherited from class brave.http.HttpRequest
header, method, path, startTimestamp, toString, unwrap, url
-
-
-
-
Method Detail
-
header
@Nullable public abstract void header(java.lang.String name, java.lang.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
-
-