NestJS - Interceptors
How can you enhance a LoggingInterceptor to log the HTTP method and URL of each request along with processing time?
context.switchToHttp().getRequest() to get the request object.method and url properties.context.switchToHttp().getRequest() and log method and url -> Option Acontext.switchToHttp().getRequest() and log method and url correctly accesses request info in interceptor. [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions