Skip to content

PlatformMiddlewaresChain

@tsed/platform-http

Usage

typescript
import { PlatformMiddlewaresChain } from "@tsed/platform-http";

See /packages/platform/platform-http/src/types/common/services/PlatformMiddlewaresChain.ts.

Overview

ts
class PlatformMiddlewaresChain {
    protected acceptMimes: string[];
    protected adapter: PlatformAdapter<any>;
    get(handlers: AlterEndpointHandlersArg, operationRoute: JsonOperationRoute): AlterEndpointHandlersArg;
    protected hasAcceptMimes(operationRoute: JsonOperationRoute): number;
    protected getParamTypes(middlewares: AlterEndpointHandlersArg, operationRoute: JsonOperationRoute): {
        ACCEPT_MIMES: number;
        FILE: boolean;
        RAW_BODY: boolean;
        BODY: boolean;
    };
}

protected acceptMimes

ts
protected acceptMimes: string[];

protected adapter

ts
protected adapter: PlatformAdapter<any>;

get

ts
get(handlers: AlterEndpointHandlersArg, operationRoute: JsonOperationRoute): AlterEndpointHandlersArg;

protected hasAcceptMimes

ts
protected hasAcceptMimes(operationRoute: JsonOperationRoute): number;

protected getParamTypes

ts
protected getParamTypes(middlewares: AlterEndpointHandlersArg, operationRoute: JsonOperationRoute): {
     ACCEPT_MIMES: number;
     FILE: boolean;
     RAW_BODY: boolean;
     BODY: boolean;
 };

Released under the MIT License.