Skip to content

API 参考 / @142vip/nest / ResponseInterceptor

类: ResponseInterceptor ​

定义于: interceptors/response.interceptor.ts:20

实现 ​

  • NestInterceptor

构造函数 ​

构造函数 ​

new ResponseInterceptor(): ResponseInterceptor

返回 ​

ResponseInterceptor

方法 ​

intercept() ​

intercept(context, next): Observable<unknown>

定义于: interceptors/response.interceptor.ts:21

Method to implement a custom interceptor.

参数 ​

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.

返回 ​

Observable<unknown>

实现了 ​

NestInterceptor.intercept