public abstract class RequestBody
extends java.lang.Object
Request,
ProtocolWriter| Modifier and Type | Field and Description |
|---|---|
static RequestBody |
EMPTY
Used to construct an empty RequestBody when there is no need to write any data to it
|
| Constructor and Description |
|---|
RequestBody() |
| Modifier and Type | Method and Description |
|---|---|
static RequestBody |
fromValues(java.util.Map<java.lang.String,?> values)
Constructs a RequestBody with data from a Map
|
abstract void |
writeTo(ProtocolWriter writer)
Writes data to a ProtocolWriter
|
public static final RequestBody EMPTY
public abstract void writeTo(ProtocolWriter writer) throws java.io.IOException
writer - The ProtocolWriter to write the datajava.io.IOException - on failed IO operationspublic static RequestBody fromValues(java.util.Map<java.lang.String,?> values)
values - A Map containing all the parameters to contruct a RequestBodyjava.lang.IllegalArgumentException - on a null Map argument