Package | Description |
---|---|
ratpack.http |
The HTTP protocol.
|
ratpack.http.client |
The HTTP client.
|
Modifier and Type | Method and Description |
---|---|
MutableHeaders |
MutableHeaders.add(java.lang.CharSequence name,
java.lang.Object value)
Adds a new header with the specified name and value.
|
MutableHeaders |
MutableHeaders.clear()
Removes all headers from this message.
|
MutableHeaders |
MutableHeaders.copy(Headers headers) |
MutableHeaders |
Response.getHeaders()
The response headers.
|
MutableHeaders |
MutableHeaders.remove(java.lang.CharSequence name)
Removes the header with the specified name.
|
MutableHeaders |
MutableHeaders.set(java.lang.CharSequence name,
java.lang.Iterable<?> values)
Sets a new header with the specified name and values.
|
MutableHeaders |
MutableHeaders.set(java.lang.CharSequence name,
java.lang.Object value)
Sets the (only) value for the header with the specified name.
|
MutableHeaders |
MutableHeaders.setDate(java.lang.CharSequence name,
java.util.Date value)
Set a header with the given date as the value.
|
default MutableHeaders |
MutableHeaders.setDate(java.lang.CharSequence name,
java.time.Instant value)
Set a header with the given date as the value.
|
Modifier and Type | Method and Description |
---|---|
MutableHeaders |
RequestSpec.getHeaders() |
Modifier and Type | Method and Description |
---|---|
void |
StreamedResponse.forwardTo(Response response,
Action<? super MutableHeaders> headerMutator)
Stream this received response out to the given server response.
|
RequestSpec |
RequestSpec.headers(Action<? super MutableHeaders> action)
This method can be used to buffer changes to the headers.
|