Interface BaseResponse

All Known Subinterfaces:
InterceptableResponse, Response, Response, WebResponse

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 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 provide methods to set HTTP response content.

Since:
1.6
Author:
Jeremy Kuhn
  • Method Details

    • headers

      Returns the HTTP headers of the response.

      Returns:
      the response headers
    • trailers

      InboundHeaders trailers()

      Returns the HTTP response trailer headers.

      Note that in a client exchange trailers are only received after the response body as a result this method shall return null when invoked before the response data publisher completes.

      Returns:
      the response trailer headers or null