open fun setChunked(chunked: Boolean): HttpServerResponse
If chunked is true, this response will use HTTP chunked encoding, and each call to write to the body will correspond to a new HTTP chunk sent on the wire.
If chunked encoding is used the HTTP header Transfer-Encoding with a value of Chunked will be automatically inserted in the response.
If chunked is false, this response will not use HTTP chunked encoding, and therefore the total size of any data that is written in the respone body must be set in the Content-Length header before any data is written out.
An HTTP chunked response is typically used when you do not know the total size of the request body up front.
Return
a reference to this, so the API can be used fluently