public interface BaseResponse
Base HTTP response for representing client or server responses.
It exposes content information following HTTP response message format as defined by RFC7230 and RFC7231.
Considering a client exchange, where the response is received by the client from the server, implementation shall only provide methods to access HTTP response content. Considering a server exchange, where the response is provided and sent from the server to the client, implementation shall only provide methods to set HTTP response content.
- Since:
- 1.6
- Author:
- Jeremy Kuhn
-
Method Details
-
headers
InboundResponseHeaders headers()Returns the HTTP headers of the response.
- Returns:
- the response headers
-
trailers
InboundHeaders trailers()Returns the HTTP response trailer headers.
- Returns:
- the response trailer headers
-