Skip to content

PlatformKoaHandler

@tsed/platform-koa

Usage

typescript
import { PlatformKoaHandler } from "@tsed/platform-koa";

See /packages/platform/platform-koa/src/types/services/PlatformKoaHandler.ts.

Overview

ts
class PlatformKoaHandler extends PlatformHandler {
    onRequest(handler: PlatformParamsCallback, $ctx: PlatformContext): Promise<any>;
    flush($ctx: PlatformContext): Promise<void>;
}

onRequest

ts
onRequest(handler: PlatformParamsCallback, $ctx: PlatformContext): Promise<any>;

flush

ts
flush($ctx: PlatformContext): Promise<void>;

Released under the MIT License.