Package | Description |
---|---|
ratpack.http.client |
Modifier and Type | Method and Description |
---|---|
RequestSpec.Body |
RequestSpec.Body.buffer(ByteBuf byteBuf)
Specifies the request body as a byte buffer.
|
RequestSpec.Body |
RequestSpec.Body.bytes(byte[] bytes)
Specifies the request body as a byte array.
|
RequestSpec.Body |
RequestSpec.getBody()
The body of the request, used for specifying the body content.
|
RequestSpec.Body |
RequestSpec.Body.stream(Action<? super OutputStream> action)
Specifies the request body by writing to an output stream.
|
RequestSpec.Body |
RequestSpec.Body.text(CharSequence text)
Specifies the request body as a UTF-8 char sequence.
|
RequestSpec.Body |
RequestSpec.Body.text(CharSequence text,
Charset charset)
Specifies the request body as a char sequence of the given charset.
|
RequestSpec.Body |
RequestSpec.Body.type(String contentType)
Specifies the
"Content-Type" of the request. |
Modifier and Type | Method and Description |
---|---|
RequestSpec |
RequestSpec.body(Action<? super RequestSpec.Body> action)
Executes the given action with the
request body . |