/** * Write a {@link Buffer} to the response body. * * <p> * * @return A reference to this, so multiple method calls can be chained. */ public HttpServerResponse write(Buffer chunk) { return write(chunk.getChannelBuffer(), null); }
/** * Write a {@link Buffer} to the response body. The {@code doneHandler} is called after the buffer * is actually written to the wire. * * <p> * * @return A reference to this, so multiple method calls can be chained. */ public HttpServerResponse write(Buffer chunk, EventHandler<Void> doneHandler) { return write(chunk.getChannelBuffer(), doneHandler); }
/** Write a {@link Buffer} to the response body. */ public void writeBuffer(Buffer chunk) { write(chunk.getChannelBuffer(), null); }