Package brave.http
Class HttpServerResponse
java.lang.Object
brave.http.HttpServerResponse
public abstract class HttpServerResponse extends Object
Marks an interface for use in
HttpServerHandler.handleSend(Object, Throwable, Span). This
gives a standard type to consider when parsing an outgoing context.- Since:
- 5.7
- See Also:
HttpServerRequest
-
Constructor Summary
Constructors Constructor Description HttpServerResponse() -
Method Summary
Modifier and Type Method Description longfinishTimestamp()Stringmethod()Stringroute()abstract intstatusCode()StringtoString()abstract Objectunwrap()Returns the underlying http response object.
-
Constructor Details
-
HttpServerResponse
public HttpServerResponse()
-
-
Method Details
-
unwrap
Returns the underlying http response object. Ex.javax.servlet.http.HttpServletResponseNote: 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
-