HttpHeaders with the following HTTP/2 specific modifications:
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Http2Headers.
HTTP/2 pseudo-headers names. |
| Modifier and Type | Method and Description |
|---|---|
| public Http2Headers | add(CharSequence
the name of the header. name, CharSequence the value of the header. value)Redeclares io. name and value.
|
| public Http2Headers | add(CharSequence
the name of the header. name, Iterable<? extends CharSequence> the values of the header. values)Redeclares io. name and values.
|
| public default Http2Headers | add(CharSequence
the name of the header. name, Iterator<? extends CharSequence> the values of the header. valuesItr)Overrides default io. name and values.
|
| public Http2Headers | add(CharSequence
the name of the header. name, CharSequence... the values of the header. values)Redeclares io. name and values.
|
| public Http2Headers | add(HttpHeaders
the headers to add. headers)Redeclares io. headers to this object.
|
| public Http2Headers | addCookie(HttpCookiePair
the cookie to add. cookie)Redeclares io. |
| public default Http2Headers | addCookie(final CharSequence
the name of the cookie. name, final CharSequence the value of the cookie. value)Overrides default io. name and
value.
|
| public Http2Headers | addSetCookie(HttpSetCookie
the cookie to add. cookie)Redeclares io. |
| public default Http2Headers | addSetCookie(final CharSequence
the name of the cookie. name, final CharSequence the value of the cookie. value)Overrides default io. name
and value.
|
| public Http2Headers | |
| public CharSequence | |
| public Http2Headers | |
| public Http2Headers | copy()
Redeclares io. |
| public static Http2Headers | Returns: A new headers instance that use up as few resources as possible.Hides io. |
| public Http2Headers | |
| public CharSequence | |
| public static Http2Headers | Returns: A new empty header instance.Hides io. |
| public static Http2Headers | Returns: A new empty headers instance.true to validate header names, values, and cookies.Hides io. |
| public static Http2Headers | Returns: A new empty header instance with the given configuration.A hint as to how large the hash data structure should be.
The next positive power of two will be used. An upper bound may be enforced. sizeHint, boolean true to validate header names.true to validate cookie contents when parsing.true to validate header values.Hides io. |
| public Http2Headers | |
| public CharSequence | |
| public default Http2Headers | replace(final HttpHeaders
the headers used to remove names and then add new entries. headers)Overrides default io. headers from this object, and then adds all headers contained in
headers.
|
| public Http2Headers | |
| public CharSequence | |
| public Http2Headers | set(CharSequence
the name of the header. name, CharSequence the value of the header. value)Redeclares io. name and value.
|
| public Http2Headers | set(CharSequence
the name of the header. name, Iterable<? extends CharSequence> the values of the header. values)Redeclares io. name and values.
|
| public default Http2Headers | set(CharSequence
the name of the header. name, Iterator<? extends CharSequence> the values of the header. valueItr)Overrides default io. name and values.
|
| public default Http2Headers | set(CharSequence
the name of the header. name, CharSequence... the values of the header. values)Overrides default io. name and values.
|
| public default Http2Headers | set(final HttpHeaders
the headers object which contains new values. headers)Overrides default io. headers object.
|
| public Http2Headers | |
| public CharSequence |
| add | back to summary |
|---|---|
| public Http2Headers add(CharSequence name, CharSequence value) Redeclares io. Doc from io. Adds a new header with the specified
| |
| add | back to summary |
|---|---|
| public Http2Headers add(CharSequence name, Iterable<? extends CharSequence> values) Redeclares io. Doc from io. Adds new headers with the specified
for (T value : values) {
headers.add(name, value);
}
| |
| add | back to summary |
|---|---|
| public default Http2Headers add(CharSequence name, Iterator<? extends CharSequence> valuesItr) Overrides default io. Doc from io. Adds new headers with the specified
while (valueItr.hasNext()) {
headers.add(name, valueItr.next());
}
| |
| add | back to summary |
|---|---|
| public Http2Headers add(CharSequence name, CharSequence... values) Redeclares io. Doc from io. Adds new headers with the specified
for (T value : values) {
headers.add(name, value);
}
| |
| add | back to summary |
|---|---|
| public Http2Headers add(HttpHeaders headers) Redeclares io. Doc from io. Adds all header names and values of
| |
| addCookie | back to summary |
|---|---|
| public Http2Headers addCookie(HttpCookiePair cookie) Redeclares io. Doc from io. Adds a cookie.
This may result in multiple
| |
| addCookie | back to summary |
|---|---|
| public default Http2Headers addCookie(final CharSequence name, final CharSequence value) Overrides default io. Doc from io. Adds a cookie with the specified
This may result in multiple
| |
| addSetCookie | back to summary |
|---|---|
| public Http2Headers addSetCookie(HttpSetCookie cookie) Redeclares io. Doc from io. Adds a set-cookie.
This may result in multiple
| |
| addSetCookie | back to summary |
|---|---|
| public default Http2Headers addSetCookie(final CharSequence name, final CharSequence value) Overrides default io. Doc from io. Adds a set-cookie with the specified
This may result in multiple
| |
| authority | back to summary |
|---|---|
| public Http2Headers authority(CharSequence value) Sets the | |
| authority | back to summary |
|---|---|
| public CharSequence authority() Gets the | |
| clear | back to summary |
|---|---|
| public Http2Headers clear() Redeclares io. Doc from io. Removes all headers.
| |
| copy | back to summary |
|---|---|
| public Http2Headers copy() Redeclares io. Doc from io. Create an independent copy of these HTTP headers.
| |
| emptyHeaders | back to summary |
|---|---|
| public static Http2Headers emptyHeaders() Hides io. Create a headers instance that is expected to remain empty.
| |
| method | back to summary |
|---|---|
| public Http2Headers method(CharSequence value) Sets the | |
| method | back to summary |
|---|---|
| public CharSequence method() Gets the | |
| newHeaders | back to summary |
|---|---|
| public static Http2Headers newHeaders() Hides io. Create a header instance with default size hint, and all validation checks turned on.
| |
| newHeaders | back to summary |
|---|---|
| public static Http2Headers newHeaders(boolean validate) Hides io. Create a headers instance with default size hint, and all validation checks turned on.
| |
| newHeaders | back to summary |
|---|---|
| public static Http2Headers newHeaders(int sizeHint, boolean checkNames, boolean checkCookies, boolean checkValues) Hides io. Create a header instance with the given size hint, and the given validation checks turned on.
| |
| path | back to summary |
|---|---|
| public Http2Headers path(CharSequence value) Sets the | |
| path | back to summary |
|---|---|
| public CharSequence path() Gets the | |
| replace | back to summary |
|---|---|
| public default Http2Headers replace(final HttpHeaders headers) Overrides default io. Doc from io. Removes all header names contained in
| |
| scheme | back to summary |
|---|---|
| public Http2Headers scheme(CharSequence value) Sets the | |
| scheme | back to summary |
|---|---|
| public CharSequence scheme() Gets the | |
| set | back to summary |
|---|---|
| public Http2Headers set(CharSequence name, CharSequence value) Redeclares io. Doc from io. Sets a header with the specified
| |
| set | back to summary |
|---|---|
| public Http2Headers set(CharSequence name, Iterable<? extends CharSequence> values) Redeclares io. Doc from io. Sets a new header with the specified
headers.remove(name);
for (T value : values) {
headers.add(name, value);
}
| |
| set | back to summary |
|---|---|
| public default Http2Headers set(CharSequence name, Iterator<? extends CharSequence> valueItr) Overrides default io. Doc from io. Sets a new header with the specified
headers.remove(name);
while (valueItr.hasNext()) {
headers.add(name, valueItr.next());
}
| |
| set | back to summary |
|---|---|
| public default Http2Headers set(CharSequence name, CharSequence... values) Overrides default io. Doc from io. Sets a header with the specified
headers.remove(name);
for (T value : values) {
headers.add(name, value);
}
| |
| set | back to summary |
|---|---|
| public default Http2Headers set(final HttpHeaders headers) Overrides default io. Doc from io. Clears the current header entries and copies all header entries of the specified
| |
| status | back to summary |
|---|---|
| public Http2Headers status(CharSequence value) Sets the | |
| status | back to summary |
|---|---|
| public CharSequence status() Gets the | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Http2Headers. | AUTHORITY
|
| public static final Http2Headers. | METHOD
|
| public static final Http2Headers. | PATH
|
| public static final Http2Headers. | PROTOCOL
|
| private static final char | |
| private static final byte | |
| private final boolean | |
| public static final Http2Headers. | SCHEME
|
| public static final Http2Headers. | STATUS
|
| private final AsciiString |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Http2Headers. | getPseudoHeader(CharSequence header)
Returns the |
| public static boolean | Returns: true if the header follow the pseudo-header formatIndicates whether the specified header follows the pseudo-header format (begins with ':' character) |
| public static boolean | isPseudoHeader(CharSequence header)
Indicates whether the given header name is a valid HTTP/2 pseudo header. |
| public boolean | Returns: true if the pseudo-header is to be used in a request contextIndicates whether the pseudo-header is to be used in a request context. |
| public AsciiString | |
| public static Http2Headers. | |
| public static Http2Headers. |
| AUTHORITY | back to summary |
|---|---|
| public static final Http2Headers.
| |
| METHOD | back to summary |
|---|---|
| public static final Http2Headers.
| |
| PATH | back to summary |
|---|---|
| public static final Http2Headers.
| |
| PROTOCOL | back to summary |
|---|---|
| public static final Http2Headers.
| |
| PSEUDO_HEADER_PREFIX | back to summary |
|---|---|
| private static final char PSEUDO_HEADER_PREFIX | |
| PSEUDO_HEADER_PREFIX_BYTE | back to summary |
|---|---|
| private static final byte PSEUDO_HEADER_PREFIX_BYTE | |
| requestOnly | back to summary |
|---|---|
| private final boolean requestOnly | |
| SCHEME | back to summary |
|---|---|
| public static final Http2Headers.
| |
| STATUS | back to summary |
|---|---|
| public static final Http2Headers.
| |
| value | back to summary |
|---|---|
| private final AsciiString value | |
| PseudoHeaderName | back to summary |
|---|---|
| private PseudoHeaderName(String value, boolean requestOnly) | |
| getPseudoHeader | back to summary |
|---|---|
| public static Http2Headers. Returns the
| |
| hasPseudoHeaderFormat | back to summary |
|---|---|
| public static boolean hasPseudoHeaderFormat(CharSequence headerName) Indicates whether the specified header follows the pseudo-header format (begins with ':' character)
| |
| isPseudoHeader | back to summary |
|---|---|
| public static boolean isPseudoHeader(CharSequence header) Indicates whether the given header name is a valid HTTP/2 pseudo header. | |
| isRequestOnly | back to summary |
|---|---|
| public boolean isRequestOnly() Indicates whether the pseudo-header is to be used in a request context.
| |
| value | back to summary |
|---|---|
| public AsciiString value() | |
| valueOf | back to summary |
|---|---|
| public static Http2Headers. | |
| values | back to summary |
|---|---|
| public static Http2Headers. | |