public class HttpResponseWriter extends Object
Constructor and Description |
---|
HttpResponseWriter(NioWriter writer) |
Modifier and Type | Method and Description |
---|---|
SendResult |
send(ByteBuffer fullResponse) |
SendResult |
sendResponse(int statusCode,
String statusTxt,
String contentType,
byte[] content) |
SendResult |
sendResponse(int statusCode,
String statusTxt,
String contentType,
java.nio.file.Path resource) |
SendResult |
sendResponse(int statusCode,
String statusTxt,
String contentType,
String content,
Charset ascii) |
public HttpResponseWriter(NioWriter writer)
public SendResult sendResponse(int statusCode, String statusTxt, String contentType, java.nio.file.Path resource)
public SendResult send(ByteBuffer fullResponse)
public SendResult sendResponse(int statusCode, String statusTxt, String contentType, String content, Charset ascii)
public SendResult sendResponse(int statusCode, String statusTxt, String contentType, byte[] content)
Copyright © 2016. All Rights Reserved.