Example usage for Java io.netty.handler.codec.http2 Http2Headers fields, constructors, methods, implement or subclass
The text is from its open source code.
T | add(K name, V value) Adds a new header with the specified name and value . |
T | addInt(K name, int value) Adds a new header. |
T | addObject(K name, Object value) Adds a new header. |
CharSequence | authority() Gets the PseudoHeaderName#AUTHORITY header or null if there is no such header |
Http2Headers | authority(CharSequence value) Sets the PseudoHeaderName#AUTHORITY header or null if there is no such header |
boolean | contains(K name) Returns true if a header with the name exists, false otherwise. |
boolean | contains(K name, V value) Returns true if a header with the name and value exists, false otherwise. |
V | get(K name) Returns the value of a header with the specified name. |
List | getAll(K name) Returns all values for the header with the specified name. |
List | getAllAndRemove(K name) Returns all values for the header with the specified name and removes them from this object. |
V | getAndRemove(K name) Returns the value of a header with the specified name and removes it from this object. |
Integer | getInt(K name) Returns the int value of a header with the specified name. |
long | getLong(K name, long defaultValue) Returns the long value of a header with the specified name. |
CharSequence | method() Gets the PseudoHeaderName#METHOD header or null if there is no such header |
Http2Headers | method(CharSequence value) Sets the PseudoHeaderName#METHOD header |
CharSequence | path() Gets the PseudoHeaderName#PATH header or null if there is no such header |
Http2Headers | path(CharSequence value) Sets the PseudoHeaderName#PATH header or null if there is no such header |
boolean | remove(K name) Removes all headers with the specified name . |
CharSequence | scheme() Gets the PseudoHeaderName#SCHEME header or null if there is no such header |
Http2Headers | scheme(CharSequence value) Sets the PseudoHeaderName#SCHEME header if there is no such header |
T | set(Headers extends K, ? extends V, ?> headers) Clears the current header entries and copies all header entries of the specified headers . |
T | set(K name, V value) Sets a header with the specified name and value. |
int | size() Returns the number of headers in this object. |
CharSequence | status() Gets the PseudoHeaderName#STATUS header or null if there is no such header |
Http2Headers | status(CharSequence value) Sets the PseudoHeaderName#STATUS header or null if there is no such header |