UNPKG

nestjs-aborter

Version:

Automatic request cancellation and timeout handling for NestJS applications

9 lines (8 loc) 403 B
import { ExceptionFilter, ArgumentsHost, RequestTimeoutException } from '@nestjs/common'; /** * Exception filter that handles RequestTimeoutException thrown by AborterInterceptor. * Returns a clean 408 Request Timeout response without logging stack traces. */ export declare class AborterFilter implements ExceptionFilter { catch(exception: RequestTimeoutException, host: ArgumentsHost): void; }