-
Notifications
You must be signed in to change notification settings - Fork 43
Middlewares
Samuel Cardoso edited this page May 23, 2017
·
7 revisions
This will allow you to create middlewares. They are functions that allow you to customize (by code) the behavior of the each API feature, such as Routing, Authentication, Throttling and so on. You can define the following middlewares:
- Cors - you can define white and black lists, specific rules and so on;
- Request and Response - allow you to customize your requests and responses information, such as headers, content body and others;
- Throttling - you to create a key to identify the source of the request;
- Authentication - allows you to instantiate any passportjs strategy to satisfy a custom authentication method;
- Circuit Breaker - allows you to customize actions whenever some event occurs, such as 'open', 'close' or 'rejected'.