import { ClientRequest , IncomingMessage } from 'http' ; import { ProxyErrorException } from '../exceptions/proxy-error.exception' ; import { Request } from './request.interface' ; import { Response } from './response.interface' ; export interface Filter { before ? ( request , response ) : boolean | Promise < boolean > ; request ? ( proxyReq , request , response ) ; response ? ( proxyRes , request , response ) ; error ? ( error , request , response ) ; }