- All Superinterfaces:
InboundHeaders
- All Known Subinterfaces:
OutboundRequestHeaders
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 Summary
Modifier and TypeMethodDescriptioncookies()
Returns the cookies defined in the request.Returns the content length of the request.Returns the content type header field value of the request.Decodes and returns the content type header of the request.Methods inherited from interface io.inverno.mod.http.base.InboundHeaders
contains, contains, get, getAll, getAll, getAllHeader, getAllHeader, getAllParameter, getAllParameter, getHeader, getNames, getParameter
-
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
-