vertx / io.vertx.kotlin.core.streams

Package io.vertx.kotlin.core.streams

Functions

end

fun <S : WriteStream<Buffer>> S.end(pretty: Boolean = false, block: Json.() -> Any): S

End the stream with an object encoded to json.

write

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.