Package brave.http
Class HttpClientResponse
- java.lang.Object
-
- brave.http.HttpClientResponse
-
public abstract class HttpClientResponse extends Object
Marks an interface for use inHttpClientHandler.handleReceive(Object, Throwable, 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 Abstract Methods Concrete Methods Modifier and Type Method Description longfinishTimestamp()Stringmethod()Stringroute()abstract intstatusCode()StringtoString()abstract Objectunwrap()Returns the underlying http response object.
-
-
-
Method Detail
-
unwrap
public abstract Object unwrap()
Returns the underlying http response object. Ex.org.apache.http.HttpResponseNote: Some implementations are composed of multiple types, such as a response and an object representing the matched route. Moreover, an implementation may change the type returned due to refactoring. Unless you control the implementation, cast carefully (ex using
instance of) instead of presuming a specific type will always be returned.
-
method
@Nullable public String method()
- See Also:
HttpAdapter.methodFromResponse(Object)
-
route
@Nullable public String route()
- See Also:
HttpAdapter.route(Object)
-
statusCode
public abstract int statusCode()
- See Also:
HttpAdapter.statusCodeAsInt(Object)
-
finishTimestamp
public long finishTimestamp()
- See Also:
HttpAdapter.finishTimestamp(Object)
-
-