- All Superinterfaces:
Headers
,Iterable<Header>
,ServerRequestHeaders
,WritableHeaders<ClientRequestHeaders>
public interface ClientRequestHeaders
extends ServerRequestHeaders, WritableHeaders<ClientRequestHeaders>
Mutable headers of a client request.
-
Field Summary
Fields inherited from interface io.helidon.http.ServerRequestHeaders
HUC_ACCEPT_DEFAULT, HUC_ACCEPT_DEFAULT_TYPES
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClientRequestHeaders
Accepted media types.static ClientRequestHeaders
Create client request headers from headers.static ClientRequestHeaders
create
(WritableHeaders<?> delegate) Create client request headers from writable headers.Methods inherited from interface io.helidon.http.Headers
acceptedTypes, all, contains, contains, contentLength, contentType, first, get, size, stream, toMap, value, values
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface io.helidon.http.ServerRequestHeaders
acceptDatetime, bestAccepted, cookies, date, ifModifiedSince, ifUnmodifiedSince, isAccepted, referer
Methods inherited from interface io.helidon.http.WritableHeaders
add, add, add, add, clear, contentLength, contentType, from, remove, remove, set, set, set, set, set, setIfAbsent
-
Method Details
-
create
Create client request headers from writable headers.- Parameters:
delegate
- headers- Returns:
- client request headers
-
create
Create client request headers from headers.- Parameters:
headers
- headers- Returns:
- client request headers
-
accept
Accepted media types. Supports quality factor and wildcards.- Parameters:
accepted
- media types to accept- Returns:
- updated headers
-