vertx / io.vertx.reactivex.core.http / HttpServerResponse / write

# write

`open fun write(data: Buffer): HttpServerResponse` `open fun write(chunk: String, enc: String): HttpServerResponse`

Write a java.lang.String to the response body, encoded using the encoding `enc`.

### Parameters

`chunk` - the string to write

`enc` - the encoding to use

Return
a reference to this, so the API can be used fluently

`open fun write(chunk: String): HttpServerResponse`

Write a java.lang.String to the response body, encoded in UTF-8.

### Parameters

`chunk` - the string to write

Return
a reference to this, so the API can be used fluently