public static interface Body.Writer
locals()
.Modifier and Type | Interface and Description |
---|---|
static interface |
Body.Writer.Bytes
Write bytes to the HTTP Body.
|
static interface |
Body.Writer.Text
Write text to the HTTP Body and apply application/request charset.
|
Modifier and Type | Method and Description |
---|---|
void |
bytes(Body.Writer.Bytes bytes)
Write bytes into the HTTP response body and close the resources.
|
Charset |
charset() |
Map<String,Object> |
locals()
Access to request locals.
|
void |
text(Body.Writer.Text text)
Write text into the HTTP response body using the
charset() and close the resources. |
Charset charset()
Map<String,Object> locals()
Locals.attributes()
and Locals
.void text(@Nonnull Body.Writer.Text text) throws Exception
charset()
and close the resources.
It applies the application/request charset.text
- A text strategy.Exception
- When the operation fails.void bytes(@Nonnull Body.Writer.Bytes bytes) throws Exception
bytes
- A bytes strategy.Exception
- When the operation fails.Copyright © 2015. All rights reserved.