Interface InboundRequestHeaders

All Superinterfaces:
InboundHeaders
All Known Subinterfaces:
OutboundRequestHeaders

public interface InboundRequestHeaders extends InboundHeaders

Represents immutable inbound HTTP request headers.

This extends the InboundHeaders to expose request specific information like content type, content length and cookies.

An inbound request is received by a server in a server exchange.

Since:
1.6
Author:
Jeremy Kuhn
  • Method Details

    • getContentType

      String getContentType()

      Returns the content type header field value of the request.

      Returns:
      the content type or null
    • getContentTypeHeader

      Headers.ContentType getContentTypeHeader()

      Decodes and returns the content type header of the request.

      Returns:
      the decoded content type header or null
    • getAccept

      String getAccept()

      Returns the accept header field value of the request.

      Returns:
      the accept header value or null
    • getAcceptHeader

      Headers.Accept getAcceptHeader()

      Decodes and returns the accept header of the request. Returns the accept header field value of the request.

      Returns:
      the decoded accept header or null
    • getContentLength

      Long getContentLength()

      Returns the content length of the request.

      Returns:
      the content length or null
    • cookies

      InboundCookies cookies()

      Returns the cookies defined in the request.

      Returns:
      the cookies