Explaining the interceptor

The purpose of the interceptor is to include, within the code stream, a class responsible for collecting/manipulating information passed through the HTTP request, such as the authorization header, URL, and credentials provided by the HTTP agent. The concept is presented in the following diagram:

An interceptor is added before or after the call to the process responsible for handling the declared logic within the application. This interceptor involves your code and will act as a security guardian.

Any type of data that is not in the interceptor's processing policy causes some action to be taken within the application. ...

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.