Package-level declarations

Types

Link copied to clipboard
class StaticAssetBuilder(route: Route, path: String)

A builder class used for configuring static asset serving in the application. This class provides methods to serve files from a folder or resources.

Link copied to clipboard
object WebServer

A utility object to manage a Ktor-based web server. This provides methods to start and stop the web server with custom configurations and routes.

Functions

Link copied to clipboard
fun Application.staticAssets(path: String, configure: StaticAssetBuilder.() -> Unit): Application

Configures static asset serving for a specified path with custom asset settings.

Link copied to clipboard
fun Application.staticFolder(path: String, folder: String): Application

Configures static file serving for a specified path and folder.

Link copied to clipboard
fun Application.staticResources(path: String, resourcePackage: String): Application

Configures static resources serving from a specified resource package.