nestjs-aborter
Version:
Automatic request cancellation and timeout handling for NestJS applications
9 lines (8 loc) • 403 B
TypeScript
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;
}