fun <S : WriteStream<Buffer>> S.end(pretty: Boolean = false, block: Json.() -> Any): S
End the stream with an object encoded to json. |
|
fun <S : WriteStream<Buffer>> S.write(pretty: Boolean = false, block: Json.() -> Any): S
Encode an object to json and write it to the write stream. |