public class TrailingHeaders
extends java.lang.Object
| Constructor and Description |
|---|
TrailingHeaders() |
TrailingHeaders(io.netty.handler.codec.http.LastHttpContent lastHttpContent) |
| Modifier and Type | Method and Description |
|---|---|
TrailingHeaders |
addHeader(java.lang.CharSequence name,
java.lang.Iterable<java.lang.Object> values)
Adds an HTTP trailing header with the passed
name and values to this request. |
TrailingHeaders |
addHeader(java.lang.CharSequence name,
java.lang.Object value)
Adds an HTTP trailing header with the passed
name and value to this request. |
java.util.List<java.lang.String> |
getAllHeaderValues(java.lang.CharSequence name)
Returns the values of headers with the specified name
|
java.lang.String |
getHeader(java.lang.CharSequence name)
Returns the value of a header with the specified name.
|
TrailingHeaders |
setHeader(java.lang.CharSequence name,
java.lang.Iterable<java.lang.Object> values)
Overwrites the current value, if any, of the passed trailing header to the passed values for this request.
|
TrailingHeaders |
setHeader(java.lang.CharSequence name,
java.lang.Object value)
Overwrites the current value, if any, of the passed trailing header to the passed value for this request.
|
public TrailingHeaders()
public TrailingHeaders(io.netty.handler.codec.http.LastHttpContent lastHttpContent)
public TrailingHeaders addHeader(java.lang.CharSequence name, java.lang.Object value)
name and value to this request.name - Name of the header.value - Value for the header.this.public TrailingHeaders addHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.Object> values)
name and values to this request.name - Name of the header.values - Values for the header.this.public TrailingHeaders setHeader(java.lang.CharSequence name, java.lang.Object value)
name - Name of the header.value - Value of the header.this.public TrailingHeaders setHeader(java.lang.CharSequence name, java.lang.Iterable<java.lang.Object> values)
name - Name of the header.values - Values of the header.this.public java.lang.String getHeader(java.lang.CharSequence name)
name - The name of the header to searchnull if there is no such headerpublic java.util.List<java.lang.String> getAllHeaderValues(java.lang.CharSequence name)
name - The name of the headers to searchList of header values which will be empty if no values are found