
"Ktor 3.4 also introduces a new API for dynamically documenting endpoints that works in tandem with a new compiler plugin. Instead of building a Swagger front end from a static file, the model is built at runtime from details embedded in the routing tree. To generate documentation, developers can enable it through the Ktor Gradle plugin, then it will automatically provide details in code via the new describe API."
"Also in Ktor 3.4, the OkHttp client engine now supports duplex streaming, enabling clients to send request body data and receive response data simultaneously, in contrast to regular HTTP calls, where the request body must be fully sent before the response begins. Duplex streaming is available for HTTP/2 connections and can be enabled using the new duplexStreamingEnabled property in OkHttpConfig."
Ktor 3.4 provides a runtime API for dynamically documenting endpoints that integrates with a compiler plugin. The documentation model is constructed from details embedded in the routing tree rather than from a static Swagger file. Documentation generation can be enabled through the Ktor Gradle plugin and surfaces details in code via the describe API. The OkHttp client engine gains duplex streaming to allow sending request body data and receiving response data simultaneously over HTTP/2, enabled by duplexStreamingEnabled in OkHttpConfig. The Compression plugin adds Zstd support via a ktor-server-compression-zstd module, offering fast, high-ratio, configurable compression.
Read at InfoWorld
Unable to calculate read time
Collection
[
|
...
]