| Constructor and Description |
|---|
RsWithBody(ByteBuffer buf)
Creates new response from byte buffer.
|
RsWithBody(org.reactivestreams.Publisher<ByteBuffer> body)
Creates new response with body publisher.
|
RsWithBody(Response origin,
ByteBuffer buf)
Decorates origin response body with byte buffer.
|
RsWithBody(Response origin,
org.reactivestreams.Publisher<ByteBuffer> body)
Decorates origin response body with publisher.
|
RsWithBody(Response origin,
String body,
Charset charset)
Decorates response with new text body.
|
RsWithBody(String body,
Charset charset)
Creates new response with text body.
|
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
send(Connection con)
Send the response.
|
public RsWithBody(Response origin, String body, Charset charset)
origin - Response to decoratebody - Text bodycharset - Encodingpublic RsWithBody(String body, Charset charset)
body - Text bodycharset - Encodingpublic RsWithBody(ByteBuffer buf)
buf - Buffer bodypublic RsWithBody(Response origin, ByteBuffer buf)
origin - Responsebuf - Body bufferpublic RsWithBody(org.reactivestreams.Publisher<ByteBuffer> body)
body - Publisherpublic RsWithBody(Response origin, org.reactivestreams.Publisher<ByteBuffer> body)
origin - Responsebody - Publisherpublic CompletionStage<Void> send(Connection con)
ResponseCopyright © 2012–2020 jcabi.com. All rights reserved.