- All Superinterfaces:
InboundHeaders
,InboundRequestHeaders
,OutboundHeaders<OutboundRequestHeaders>
public interface OutboundRequestHeaders
extends InboundRequestHeaders, OutboundHeaders<OutboundRequestHeaders>
Represents mutable outbound HTTP request headers.
This extends the OutboundHeaders
to expose request specific information like content type, content length and cookies.
An outbound request is sent by a client in a client exchange.
- Since:
- 1.6
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptioncontentLength
(long contentLength) Sets the request content length.contentType
(String contentType) Sets the request content type header field value.cookies
(Consumer<OutboundCookies> cookiesConfigurer) Sets the request cookies.Methods inherited from interface io.inverno.mod.http.base.InboundHeaders
contains, contains, get, getAll, getAll, getAllHeader, getAllHeader, getAllParameter, getAllParameter, getHeader, getNames, getParameter
Methods inherited from interface io.inverno.mod.http.base.InboundRequestHeaders
cookies, getContentLength, getContentType, getContentTypeHeader
-
Method Details
-
contentType
Sets the request content type header field value.
- Parameters:
contentType
- the content type- Returns:
- the request headers
-
contentLength
Sets the request content length.
- Parameters:
contentLength
- the content length- Returns:
- the request headers
-
cookies
Sets the request cookies.
- Parameters:
cookiesConfigurer
- an outbound cookies configurer- Returns:
- the request headers
-