AI-generated editorial illustration; not a documentary photograph.
JetBrains released Ktor 3.6.0 on September 18, 2026, adding experimental typed authentication, specialized OpenID Connect support and HTTP/3 for the Netty server engine. The Kotlin framework update also changes request handling, content negotiation and client setup for Kotlin Multiplatform projects.
Typed Security APIs
The new authentication module introduces explicit types connecting provider configuration with protected routes. It supports role-based access, anonymous users and typed access to authenticated principals. A separate experimental Oidc plugin can define typed identity providers, handle bearer authentication and sessions, and provide browser login flows with automatic token refresh.
HTTP/3 Comes to Netty
Ktor's Netty engine can now serve HTTP/3 over QUIC when an SSL connector is configured. Developers can adjust QUIC settings including idle timeouts, flow-control limits and UDP socket behavior. The implementation remains experimental. Netty servers can also expose cleartext HTTP/2, known as h2c, on one connector while serving HTTP/2 over TLS on another.
Request Handling Changes
Route parameter conversion now recognizes Kotlin's Uuid, Byte and unsigned numeric types. ApplicationCall.receive() accepts nullable types, while receiveNullable() is deprecated. For partial HTML responses, respondHtmlPartial replaces respondHtmlFragment and accepts unrestricted elements through TagConsumer<Appendable>.
On the client side, ContentNegotiation gains a SkipIfPresent strategy. This preserves an explicitly supplied Accept header instead of merging registered content types into it, while retaining the existing automatic behavior for requests without that header.
Simpler Multiplatform Clients
The new ktor-client-engine-defaults dependency provides a curated collection of engines for Kotlin Multiplatform. Shared code can construct HttpClient without selecting an engine, leaving Ktor to use an available implementation for each target. Developers can still choose and configure a specific engine where necessary.
Persistent HTTP cache storage now uses kotlinx-io Path rather than relying only on JVM java.io.File APIs. JetBrains also lists WebRTC support for JVM, asynchronous DNS resolution for CIO, OpenAPI tag descriptions and JavaScript fetch() overrides among the broader 3.6.0 changes.
Source: Ktor 3.6.0 Is Now Available!

Leave a Reply