on

fun on(method: CoapCode, handler: RequestHandlerFunction)(source)

Handles method, for methods without a shortcut.