HttpServer
Types
Link copied to clipboard
Link copied to clipboard
abstract class Request(val method: Http.Method, val uri: String, val headers: Http.Headers, val requestConfig: HttpServer.RequestConfig = RequestConfig()) : HttpServer.BaseRequest, AsyncOutputStream
Link copied to clipboard
data class RequestConfig(val beforeSendHeadersInterceptors: MutableMap<String, suspend (HttpServer.Request) -> Unit> = LinkedHashMap()) : Extra
Link copied to clipboard
abstract class WsRequest(val uri: String, val headers: Http.Headers, val scope: CoroutineScope) : HttpServer.BaseRequest
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun listen(port: Int = 0, host: String = "127.0.0.1", handler: suspend (HttpServer.Request) -> Unit): HttpServer
Link copied to clipboard
Link copied to clipboard