Package | Description |
---|---|
ratpack.http |
The HTTP protocol.
|
ratpack.http.client |
The HTTP client.
|
Modifier and Type | Method and Description |
---|---|
MutableHeaders |
MutableHeaders.add(CharSequence name,
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(CharSequence name)
Removes the header with the specified name.
|
MutableHeaders |
MutableHeaders.set(CharSequence name,
Iterable<?> values)
Sets a new header with the specified name and values.
|
MutableHeaders |
MutableHeaders.set(CharSequence name,
Object value)
Sets the (only) value for the header with the specified name.
|
MutableHeaders |
MutableHeaders.setDate(CharSequence name,
Date value)
Set a header with the given date as the value.
|
default MutableHeaders |
MutableHeaders.setDate(CharSequence name,
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 compose changes to the headers.
|