コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
 /** Write a {@link Buffer} to the response body. */
 public void writeBuffer(Buffer chunk) {
   write(chunk.getChannelBuffer(), null);
 }