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