Interceptors ஒரு route handler-இன் execution-ஐ wrap செய்கின்றன, அதற்கு முன்னும் பின்னும் logic-ஐ இயக்க அனுமதிக்கின்றன — மற்றும் request அல்லது response-ஐ transform செய்கின்றன. அவை aspect-oriented programming-இல் இருந்து உத்வேகம் பெற்றவை, logging, response transformation, caching, மற்றும் timing போன்ற cross-cutting concerns-க்கு சிறந்தவை.
கட்டமைப்பு: RxJS மூலம் முன் + பின்
()
{
(: , : ): <> {
.();
now = .();
next.().(
( .()),
);
}
}
