public interface HttpResponse
Modifier and Type | Interface and Description |
---|---|
static class |
HttpResponse.Decorator |
static class |
HttpResponse.Default |
Modifier and Type | Method and Description |
---|---|
java.net.SocketAddress |
getRemoteAddress() |
SendResult |
send(java.nio.ByteBuffer fullResponse) |
default SendResult |
sendResponse(int statusCode,
java.lang.String statusTxt,
java.lang.String contentType,
byte[] content,
java.nio.charset.Charset charset) |
default SendResult |
sendResponse(int statusCode,
java.lang.String statusTxt,
java.lang.String contentType,
KeyValueList headers,
byte[] content,
java.nio.charset.Charset charset) |
default SendResult |
sendResponse(int statusCode,
java.lang.String statusTxt,
java.lang.String contentType,
java.nio.file.Path resource,
java.nio.charset.Charset charset) |
default SendResult |
sendResponse(int statusCode,
java.lang.String statusTxt,
java.lang.String contentType,
java.lang.String content,
java.nio.charset.Charset ascii) |
default void |
sendWebsocketHandshake(java.lang.String reply,
KeyValueList additionalHeaders) |
default SendResult sendResponse(int statusCode, java.lang.String statusTxt, java.lang.String contentType, java.nio.file.Path resource, java.nio.charset.Charset charset)
default SendResult sendResponse(int statusCode, java.lang.String statusTxt, java.lang.String contentType, java.lang.String content, java.nio.charset.Charset ascii)
default SendResult sendResponse(int statusCode, java.lang.String statusTxt, java.lang.String contentType, byte[] content, java.nio.charset.Charset charset)
default SendResult sendResponse(int statusCode, java.lang.String statusTxt, java.lang.String contentType, KeyValueList headers, byte[] content, java.nio.charset.Charset charset)
java.net.SocketAddress getRemoteAddress()
SendResult send(java.nio.ByteBuffer fullResponse)
default void sendWebsocketHandshake(java.lang.String reply, KeyValueList additionalHeaders)
Copyright © 2019. All Rights Reserved.