@midwayjs/coreInterfacesIMiddlewareManagerVersion: NextSur cette pageIMiddlewareManager <CTX, R, N>Implemented byContextMiddlewareManagerIndex MethodsfindAndInsertAfterfindAndInsertBeforefindAndInsertFirstfindAndInsertLastfindItemfindItemIndexgetMiddlewareNamegetNamesinsertAfterinsertBeforeinsertFirstinsertLastpushremoveunshiftMethods findAndInsertAfterfindAndInsertAfter(middlewareOrName: string | CommonMiddleware<CTX, R, N>, afterMiddleware: string | number | CommonMiddleware<CTX, R, N>): voidfindAndInsertBeforefindAndInsertBefore(middlewareOrName: string | CommonMiddleware<CTX, R, N>, beforeMiddleware: string | number | CommonMiddleware<CTX, R, N>): voidfindAndInsertFirstfindAndInsertFirst(middlewareOrName: string | CommonMiddleware<CTX, R, N>): voidfindAndInsertLastfindAndInsertLast(middlewareOrName: string | CommonMiddleware<CTX, R, N>): voidfindItemfindItem(middlewareOrName: string | number | CommonMiddleware<CTX, R, N>): CommonMiddleware<CTX, R, N>findItemIndexfindItemIndex(middlewareOrName: string | number | CommonMiddleware<CTX, R, N>): numbergetMiddlewareNamegetMiddlewareName(middleware: CommonMiddleware<CTX, R, N>): stringgetNamesgetNames(): string[]insertAfterinsertAfter(middleware: CommonMiddlewareUnion<CTX, R, N>, idxOrAfterMiddleware: string | number | CommonMiddleware<CTX, R, N>): voidinsertBeforeinsertBefore(middleware: CommonMiddlewareUnion<CTX, R, N>, idxOrBeforeMiddleware: string | number | CommonMiddleware<CTX, R, N>): voidinsertFirstinsertFirst(middleware: CommonMiddlewareUnion<CTX, R, N>): voidinsertLastinsertLast(middleware: CommonMiddlewareUnion<CTX, R, N>): voidpushpush(...items: CommonMiddleware<CTX, R, N>[]): numberremoveremove(middlewareOrNameOrIdx: string | number | CommonMiddleware<CTX, R, N>): CommonMiddleware<CTX, R, N>unshiftunshift(...items: CommonMiddleware<CTX, R, N>[]): number