vertx / io.vertx.kotlin.core.streams

Package io.vertx.kotlin.core.streams

Extensions for External Classes

io.vertx.core.streams.Pipe

io.vertx.core.streams.ReadStream

io.vertx.core.streams.WriteStream

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.