Skip to main content

Class: RequestWatcher

Defined in: watchers/request.watcher.ts:21

Implements​

  • NestInterceptor

Constructors​

Constructor​

new RequestWatcher(collector, nestlensConfig, httpAdapterHost, applicationConfig): RequestWatcher

Defined in: watchers/request.watcher.ts:24

Parameters​

collector​

CollectorService

nestlensConfig​

NestLensConfig

httpAdapterHost​

HttpAdapterHost

applicationConfig​

ApplicationConfig

Returns​

RequestWatcher

Methods​

intercept()​

intercept(context, next): Observable<unknown>

Defined in: watchers/request.watcher.ts:45

Method to implement a custom interceptor.

Parameters​

context​

ExecutionContext

an ExecutionContext object providing methods to access the route handler and class about to be invoked.

next​

CallHandler

a reference to the CallHandler, which provides access to an Observable representing the response stream from the route handler.

Returns​

Observable<unknown>

Implementation of​

NestInterceptor.intercept