public interface MutableHttpHeaders extends MutableHeaders, HttpHeaders
HttpHeaders add methods for mutation of headers.| Modifier and Type | Field and Description | 
|---|---|
| static ZoneId | GMTThe default GMT zone for date values. | 
ACCEPT, ACCEPT_CH, ACCEPT_CH_LIFETIME, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_PATCH, ACCEPT_RANGES, ACCESS_CONTROL_ALLOW_CREDENTIALS, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_EXPOSE_HEADERS, ACCESS_CONTROL_MAX_AGE, ACCESS_CONTROL_REQUEST_HEADERS, ACCESS_CONTROL_REQUEST_METHOD, AGE, ALLOW, AUTHORIZATION, AUTHORIZATION_INFO, CACHE_CONTROL, CONNECTION, CONTENT_BASE, CONTENT_DISPOSITION, CONTENT_DPR, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_RANGE, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, COOKIE, CROSS_ORIGIN_RESOURCE_POLICY, DATE, DEVICE_MEMORY, DOWNLINK, DPR, ECT, ETAG, EXPECT, EXPIRES, FEATURE_POLICY, FORWARDED, FROM, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LINK, LOCATION, MAX_FORWARDS, ORIGIN, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, REFERRER_POLICY, RETRY_AFTER, RTT, SAVE_DATA, SEC_WEBSOCKET_ACCEPT, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_KEY1, SEC_WEBSOCKET_KEY2, SEC_WEBSOCKET_LOCATION, SEC_WEBSOCKET_ORIGIN, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION, SERVER, SET_COOKIE, SET_COOKIE2, SOURCE_MAP, TE, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, VIEWPORT_WIDTH, WARNING, WEBSOCKET_LOCATION, WEBSOCKET_ORIGIN, WEBSOCKET_PROTOCOL, WIDTH, WWW_AUTHENTICATE, X_AUTH_TOKENEMPTY| Modifier and Type | Method and Description | 
|---|---|
| MutableHttpHeaders | add(CharSequence header,
   CharSequence value)Add a header for the given name and value. | 
| default MutableHttpHeaders | add(CharSequence header,
   Integer value)Add a header for the given name and value. | 
| default MutableHttpHeaders | add(CharSequence header,
   ZonedDateTime value)Add a header for the given name and value. | 
| default MutableHttpHeaders | allow(Collection<HttpMethod> methods)Set the allowed HTTP methods. | 
| default MutableHttpHeaders | allow(HttpMethod... methods)Set the allowed HTTP methods. | 
| default MutableHttpHeaders | allowGeneric(Collection<? extends CharSequence> methods)Set the allowed HTTP methods. | 
| default MutableHttpHeaders | auth(String userInfo)Used to configure BASIC authentication. | 
| default MutableHttpHeaders | auth(String username,
    String password)Used to configure BASIC authentication. | 
| default MutableHttpHeaders | contentType(MediaType mediaType)Sets the  HttpHeaders.CONTENT_TYPEheader to the given media type. | 
| default MutableHttpHeaders | date(LocalDateTime date)Adds the date header for the given  LocalDateTime. | 
| default MutableHttpHeaders | date(long timeInMillis)Adds the DATE header for the given  Long. | 
| default MutableHttpHeaders | expires(LocalDateTime date)Adds the EXPIRES header for the given  LocalDateTime. | 
| default MutableHttpHeaders | expires(long timeInMillis)Adds the EXPIRES header for the given  Long. | 
| default MutableHttpHeaders | ifModifiedSince(LocalDateTime date)Adds the IF_MODIFIED_SINCE header for the given  ZonedDateTime. | 
| default MutableHttpHeaders | ifModifiedSince(long timeInMillis)Adds the IF_MODIFIED_SINCE header for the given  Long. | 
| default MutableHttpHeaders | lastModified(LocalDateTime date)Adds the LAST_MODIFIED header for the given  LocalDateTime. | 
| default MutableHttpHeaders | lastModified(long timeInMillis)Adds the LAST_MODIFIED header for the given  Long. | 
| default MutableHttpHeaders | location(URI uri)Sets the location header to the given URI. | 
| MutableHttpHeaders | remove(CharSequence header)Removes a header. | 
| default MutableHeaders | set(CharSequence header,
   CharSequence value)Sets an HTTP header overriding any existing value. | 
accept, contentLength, contentType, findDate, findFirst, findInt, getAuthorization, getContentType, getDate, getInt, getOrigin, isKeepAliveempty, forEach, forEachValue, get, getAll, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator, ofasMap, asMap, asProperties, contains, getValue, getValueType, names, of, subMap, subMap, subMap, valuesget, get, get, getforEach, spliteratorstatic final ZoneId GMT
MutableHttpHeaders add(CharSequence header, CharSequence value)
add in interface MutableHeadersheader - The header namevalue - The valueMutableHttpHeaders remove(CharSequence header)
MutableHeadersremove in interface MutableHeadersheader - The header to removedefault MutableHeaders set(CharSequence header, CharSequence value)
MutableHeadersset in interface MutableHeadersheader - The headervalue - The valuedefault MutableHttpHeaders allow(HttpMethod... methods)
methods - The methods to specify in the Allowed HTTP headerdefault MutableHttpHeaders date(LocalDateTime date)
LocalDateTime.date - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.default MutableHttpHeaders expires(LocalDateTime date)
LocalDateTime.date - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.default MutableHttpHeaders lastModified(LocalDateTime date)
LocalDateTime.date - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.default MutableHttpHeaders ifModifiedSince(LocalDateTime date)
ZonedDateTime.date - The local date time (assumed to represent system's default time-zone ZoneId.systemDefault(), will be converted to GMT) as per DateTimeFormatter.RFC_1123_DATE_TIMEMutableHttpHeadersto set date time with time-zone.default MutableHttpHeaders date(long timeInMillis)
Long.timeInMillis - The time in milli seconds since Epoch.MutableHttpHeadersdefault MutableHttpHeaders expires(long timeInMillis)
Long.timeInMillis - The time in milli seconds since Epoch.MutableHttpHeadersdefault MutableHttpHeaders lastModified(long timeInMillis)
Long.timeInMillis - The time in milli seconds since Epoch.MutableHttpHeadersdefault MutableHttpHeaders ifModifiedSince(long timeInMillis)
Long.timeInMillis - The time in milli seconds since Epoch.MutableHttpHeadersdefault MutableHttpHeaders auth(String username, String password)
username - The usernamepassword - The passworddefault MutableHttpHeaders auth(String userInfo)
userInfo - The user info which is in the form "username:password"default MutableHttpHeaders allow(Collection<HttpMethod> methods)
methods - The methods to specify in the Allowed HTTP headerdefault MutableHttpHeaders allowGeneric(Collection<? extends CharSequence> methods)
methods - The methods to specify in the Allowed HTTP headerdefault MutableHttpHeaders location(URI uri)
uri - The URIdefault MutableHttpHeaders contentType(MediaType mediaType)
HttpHeaders.CONTENT_TYPE header to the given media type.mediaType - The media typedefault MutableHttpHeaders add(CharSequence header, ZonedDateTime value)
header - The header namevalue - The valuedefault MutableHttpHeaders add(CharSequence header, Integer value)
header - The header namevalue - The value