RequestHttpHandler

class RequestHttpHandler(resource: BaseController, method: Method, path: String) : HttpHandler, HttpHandlerExtensions

This class is responsible for handling the request and invoking the method of the controller that corresponds to the request.

Parameters

resource

: The controller that contains the method to be invoked.

method

: The method to be invoked.

path

: The path of the request.

Constructors

Link copied to clipboard
constructor(resource: BaseController, method: Method, path: String)

Functions

Link copied to clipboard
open override fun handle(exchange: HttpExchange)
Link copied to clipboard
open fun String.jsonToObject(typeName: String): Any
Link copied to clipboard
open infix fun String.parseTo(typeForParse: String): Any?
Link copied to clipboard
open fun HttpExchange.send(json: Json<Any>)
Link copied to clipboard
Link copied to clipboard