- 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 TypeMethodDescriptionSets the request accept header field value.contentLength
(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, getAccept, getAcceptHeader, getContentLength, getContentType, getContentTypeHeader
Methods inherited from interface io.inverno.mod.http.base.OutboundHeaders
add, add, addParameter, addParameter, addParameter, isWritten, remove, set, set, setParameter, setParameter, setParameter
-
Method Details
-
contentType
Sets the request content type header field value.
- Parameters:
contentType
- the content type- Returns:
- the request headers
-
accept
Sets the request accept header field value.
- Parameters:
accept
- the accept header value- 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
-