Package brave.http
Class HttpServerResponse
- java.lang.Object
-
- brave.Response
-
- brave.http.HttpResponse
-
- brave.http.HttpServerResponse
-
public abstract class HttpServerResponse extends HttpResponse
Marks an interface for use inHttpServerHandler.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwableerror()HttpServerRequestrequest()The request that initiated this HTTP response ornullif unknown.Span.KindspanKind()-
Methods inherited from class brave.http.HttpResponse
finishTimestamp, method, route, statusCode
-
-
-
-
Method Detail
-
request
@Nullable public HttpServerRequest request()
The request that initiated this HTTP response ornullif 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:
requestin classHttpResponse
-
-