Package brave.http
Class HttpClientResponse
java.lang.Object
brave.http.HttpClientResponse
public abstract class HttpClientResponse extends Object
Marks an interface for use in
HttpClientHandler.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
Modifier and Type Method Description longfinishTimestamp()Stringmethod()Stringroute()abstract intstatusCode()StringtoString()abstract Objectunwrap()Returns the underlying http response object.
-
Constructor Details
-
HttpClientResponse
public HttpClientResponse()
-
-
Method Details
-
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
- See Also:
HttpAdapter.methodFromResponse(Object)
-
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)
-
toString
-