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
    • 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