Package-level declarations

Types

Link copied to clipboard
class KtorServletRequest(request: ApplicationRequest) : HttpServletRequest

An HttpServletRequest adapter that wraps a Ktor ApplicationRequest, exposing HTTP method, URI, query parameters, headers, and connection metadata through the standard servlet API.

Link copied to clipboard
class KtorServletResponse : HttpServletResponse

A lightweight, in-memory HttpServletResponse implementation that captures response headers, status code, and body content written through either getWriter or getOutputStream.

Functions

Link copied to clipboard
fun Route.servlet(path: String, servlet: HttpServlet)

Mounts a Jakarta HttpServlet at the given path within a Ktor Route.