| Modifier and Type | Class and Description |
|---|---|
class |
AbstractServerHttpExchange
Abstract base class for
ServerHttpExchange. |
| Modifier and Type | Method and Description |
|---|---|
ServerHttpExchange |
AbstractServerHttpExchange.end() |
ServerHttpExchange |
ServerHttpExchange.end()
Completes the response.
|
ServerHttpExchange |
AbstractServerHttpExchange.end(ByteBuffer data) |
ServerHttpExchange |
ServerHttpExchange.end(ByteBuffer byteBuffer)
Writes a binary chunk to the response body and completes the response
through
end(). |
ServerHttpExchange |
AbstractServerHttpExchange.end(String data) |
ServerHttpExchange |
ServerHttpExchange.end(String data)
Writes a text chunk to the response body using the charset from the
response header,
content-type and completes the response through
end(). |
ServerHttpExchange |
AbstractServerHttpExchange.end(String data,
String charsetName) |
ServerHttpExchange |
ServerHttpExchange.end(String data,
String charsetName)
Writes a text chunk to the response body using the given charset and
completes the response through
end(). |
ServerHttpExchange |
AbstractServerHttpExchange.onbody(Action action) |
ServerHttpExchange |
ServerHttpExchange.onbody(Action<?> action)
Attaches an action to be called with the whole request body.
|
ServerHttpExchange |
AbstractServerHttpExchange.onchunk(Action action) |
ServerHttpExchange |
ServerHttpExchange.onchunk(Action<?> action)
Attaches an action to be called with a chunk from the request body.
|
ServerHttpExchange |
AbstractServerHttpExchange.onclose(Action<Void> action) |
ServerHttpExchange |
ServerHttpExchange.onclose(Action<Void> action)
Attaches an action when the underlying connection is aborted for some
reason like an error.
|
ServerHttpExchange |
AbstractServerHttpExchange.onend(Action<Void> action) |
ServerHttpExchange |
ServerHttpExchange.onend(Action<Void> action)
Attaches an action to be called when the request is fully read.
|
ServerHttpExchange |
AbstractServerHttpExchange.onerror(Action<Throwable> action) |
ServerHttpExchange |
ServerHttpExchange.onerror(Action<Throwable> action)
Attaches an action to be called when this exchange gets an error.
|
ServerHttpExchange |
AbstractServerHttpExchange.onfinish(Action<Void> action) |
ServerHttpExchange |
ServerHttpExchange.onfinish(Action<Void> action)
Attaches an action to be called when the response is fully written.
|
ServerHttpExchange |
AbstractServerHttpExchange.read() |
ServerHttpExchange |
ServerHttpExchange.read()
Reads the request body.
|
ServerHttpExchange |
AbstractServerHttpExchange.readAsBinary() |
ServerHttpExchange |
ServerHttpExchange.readAsBinary()
Reads the request body as binary.
|
ServerHttpExchange |
AbstractServerHttpExchange.readAsText() |
ServerHttpExchange |
ServerHttpExchange.readAsText()
Reads the request body as text.
|
ServerHttpExchange |
AbstractServerHttpExchange.readAsText(String charsetName) |
ServerHttpExchange |
ServerHttpExchange.readAsText(String charsetName)
Reads the request body as text using the given charset.
|
ServerHttpExchange |
AbstractServerHttpExchange.setHeader(String name,
Iterable<String> value) |
ServerHttpExchange |
ServerHttpExchange.setHeader(String name,
Iterable<String> value)
Sets response headers.
|
ServerHttpExchange |
AbstractServerHttpExchange.setHeader(String name,
String value) |
ServerHttpExchange |
ServerHttpExchange.setHeader(String name,
String value)
Sets a response header.
|
ServerHttpExchange |
AbstractServerHttpExchange.setStatus(HttpStatus status) |
ServerHttpExchange |
ServerHttpExchange.setStatus(HttpStatus status)
Sets the HTTP status for the response.
|
ServerHttpExchange |
AbstractServerHttpExchange.write(ByteBuffer byteBuffer) |
ServerHttpExchange |
ServerHttpExchange.write(ByteBuffer byteBuffer)
Writes a binary chunk to the response body.
|
ServerHttpExchange |
AbstractServerHttpExchange.write(String data) |
ServerHttpExchange |
ServerHttpExchange.write(String data)
Writes a text chunk to the response body using the charset from the
response header,
content-type. |
ServerHttpExchange |
AbstractServerHttpExchange.write(String data,
String charsetName) |
ServerHttpExchange |
ServerHttpExchange.write(String data,
String charsetName)
Writes a text chunk to the response body using the given charset.
|
Copyright © 2015–2018. All rights reserved.