コード例 #1
0
 /**
  * Write a {@link String} to the response body, encoded in UTF-8. 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(String chunk, EventHandler<Void> doneHandler) {
   return write(Buffer.create(chunk).getChannelBuffer(), doneHandler);
 }
コード例 #2
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);
 }
コード例 #3
0
 /**
  * Write a {@link String} to the response body, encoded in UTF-8.
  *
  * <p>
  *
  * @return A reference to this, so multiple method calls can be chained.
  */
 public HttpServerResponse write(String chunk) {
   return write(Buffer.create(chunk).getChannelBuffer(), null);
 }
コード例 #4
0
 /** Write a {@link Buffer} to the response body. */
 public void writeBuffer(Buffer chunk) {
   write(chunk.getChannelBuffer(), null);
 }