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 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
-
Constructor Details
-
HttpServerResponse
public HttpServerResponse()
-
-
Method Details
-
spanKind
-
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
-
error
-