| Package | Description |
|---|---|
| io.helidon.webserver |
Reactive web server API.
|
| io.helidon.webserver.json | |
| io.helidon.webserver.spi |
WebServer SPI.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Function<byte[],Flow.Publisher<ResponseChunk>> |
ContentWriters.byteArrayWriter(boolean copy) |
Returns a writer function for
byte[]. |
static Function<ReadableByteChannel,Flow.Publisher<ResponseChunk>> |
ContentWriters.byteChannelWriter() |
Returns a writer function for
ReadableByteChannel. |
static Function<ReadableByteChannel,Flow.Publisher<ResponseChunk>> |
ContentWriters.byteChannelWriter(RetrySchema retrySchema) |
Returns a writer function for
ReadableByteChannel. |
static Function<CharSequence,Flow.Publisher<ResponseChunk>> |
ContentWriters.charSequenceWriter(Charset charset) |
Returns a writer function for
CharSequence using provided standard charset. |
| Modifier and Type | Method | Description |
|---|---|---|
ServerResponse |
ServerResponse.registerFilter(Function<Flow.Publisher<ResponseChunk>,Flow.Publisher<ResponseChunk>> function) |
Registers a provider of the new response content publisher - typically a filter.
|
ServerResponse |
ServerResponse.registerFilter(Function<Flow.Publisher<ResponseChunk>,Flow.Publisher<ResponseChunk>> function) |
Registers a provider of the new response content publisher - typically a filter.
|
<T> ServerResponse |
ServerResponse.registerWriter(Class<T> type,
MediaType contentType,
Function<? extends T,Flow.Publisher<ResponseChunk>> function) |
Registers a content writer for a given type and media type.
|
<T> ServerResponse |
ServerResponse.registerWriter(Class<T> type,
Function<T,Flow.Publisher<ResponseChunk>> function) |
Registers a content writer for a given type.
|
<T> ServerResponse |
ServerResponse.registerWriter(Predicate<?> accept,
MediaType contentType,
Function<T,Flow.Publisher<ResponseChunk>> function) |
Registers a content writer for all accepted contents.
|
<T> ServerResponse |
ServerResponse.registerWriter(Predicate<?> accept,
Function<T,Flow.Publisher<ResponseChunk>> function) |
Registers a content writer for all accepted contents.
|
CompletionStage<ServerResponse> |
ServerResponse.send(Flow.Publisher<ResponseChunk> content) |
Send a message as is without any other marshalling.
|
void |
ReadableByteChannelPublisher.subscribe(Flow.Subscriber<? super ResponseChunk> subscriberParam) |
| Modifier and Type | Method | Description |
|---|---|---|
Function<javax.json.JsonStructure,Flow.Publisher<ResponseChunk>> |
JsonSupport.writer() |
|
Function<javax.json.JsonStructure,Flow.Publisher<ResponseChunk>> |
JsonSupport.writer(Charset charset) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
BareResponse.onNext(ResponseChunk data) |
Provided
ByteBuffer MUST be fully read during the method call. |
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.