Package brave.http
Class HttpClientResponse
- java.lang.Object
-
- brave.Response
-
- brave.http.HttpResponse
-
- brave.http.HttpClientResponse
-
public abstract class HttpClientResponse extends HttpResponse
Marks an interface for use inHttpClientHandler.handleReceive(HttpClientResponse, Span)
. This gives a standard type to consider when parsing an incoming context.- Since:
- 5.7
- See Also:
HttpClientRequest
-
-
Constructor Summary
Constructors Constructor Description HttpClientResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
error()
HttpClientRequest
request()
The request that initiated this HTTP response ornull
if unknown.Span.Kind
spanKind()
-
Methods inherited from class brave.http.HttpResponse
finishTimestamp, method, route, statusCode
-
-
-
-
Method Detail
-
request
@Nullable public HttpClientRequest request()
The request that initiated this HTTP response ornull
if unknown.Implementations should return the last wire-level request that caused this response or error. HTTP properties like path and headers might be different, due to redirects or authentication. Some properties might not be visible until response processing, notably
HttpResponse.route()
.- Overrides:
request
in classHttpResponse
-
-