public static interface Body.Reader
Modifier and Type | Interface and Description |
---|---|
static interface |
Body.Reader.Bytes
Read bytes from HTTP Body.
|
static interface |
Body.Reader.Text
Read text from HTTP body.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
bytes(Body.Reader.Bytes bytes)
Convert a HTTP request body to something else.
|
<T> T |
text(Body.Reader.Text text)
Convert a HTTP request body to something else.
|
@Nonnull <T> T text(@Nonnull Body.Reader.Text text) throws Exception
Charset
.T
- Target type.text
- A text reading strategy.Exception
- When the operation fails.@Nonnull <T> T bytes(@Nonnull Body.Reader.Bytes bytes) throws Exception
T
- Target type.bytes
- A bytes reading strategy.Exception
- When the operation fails.Copyright © 2014. All rights reserved.