Package io.ktor.server.servlet
Types
Link copied to clipboard
open class AsyncServletApplicationCall(application: Application, servletRequest: HttpServletRequest, servletResponse: HttpServletResponse, engineContext: CoroutineContext, userContext: CoroutineContext, upgrade: ServletUpgrade, parentCoroutineContext: CoroutineContext, managedByEngineHeaders: Set<String>) : BaseApplicationCall, CoroutineScope
Content copied to clipboard
Link copied to clipboard
class AsyncServletApplicationRequest(call: ApplicationCall, servletRequest: HttpServletRequest, coroutineContext: CoroutineContext) : ServletApplicationRequest, CoroutineScope
Content copied to clipboard
Link copied to clipboard
open class AsyncServletApplicationResponse(call: AsyncServletApplicationCall, servletRequest: HttpServletRequest, servletResponse: HttpServletResponse, engineContext: CoroutineContext, userContext: CoroutineContext, servletUpgradeImpl: ServletUpgrade, coroutineContext: CoroutineContext, managedByEngineHeaders: Set<String>) : ServletApplicationResponse, CoroutineScope
Content copied to clipboard
Link copied to clipboard
The default servlet upgrade implementation using Servlet API. Please note that some servlet containers may not support it or it may be broken.
Link copied to clipboard
A base class for servlet engine implementations
Link copied to clipboard
This servlet need to be installed into a servlet container
Link copied to clipboard
abstract class ServletApplicationRequest(call: ApplicationCall, servletRequest: HttpServletRequest) : BaseApplicationRequest
Content copied to clipboard
Link copied to clipboard
class ServletApplicationRequestCookies(servletRequest: HttpServletRequest, request: ApplicationRequest) : RequestCookies
Content copied to clipboard
Link copied to clipboard
class ServletApplicationRequestHeaders(servletRequest: HttpServletRequest) : Headers
Content copied to clipboard
Link copied to clipboard
abstract class ServletApplicationResponse(call: ApplicationCall, servletResponse: HttpServletResponse, managedByEngineHeaders: Set<String>) : BaseApplicationResponse
Content copied to clipboard
Link copied to clipboard
Servlet upgrade processing
Link copied to clipboard
Link copied to clipboard
class UpgradeRequest(response: HttpServletResponse, upgradeMessage: OutgoingContent.ProtocolUpgrade, engineContext: CoroutineContext, userContext: CoroutineContext, disableAsyncInput: Boolean)
Content copied to clipboard
Link copied to clipboard
Web resources serve configuration
Functions
Link copied to clipboard
Link copied to clipboard
fun Route.webResources(subPath: String = "/", configure: WebResourcesConfig.() -> Unit = {})
Content copied to clipboard
Serve web resources (usually a directory named webapp containing WEB-INF/web.xml). Note that WEB-INF directory itself is not served by default.