Interceptor ห่อหุ้มการทำงานของ route handler ทำให้คุณรัน logic ได้ ทั้งก่อนและหลัง มัน — และแปลง request หรือ response ได้ มันได้แรงบันดาลใจจาก aspect-oriented programming เหมาะสำหรับเรื่องแบบ cross-cutting เช่น logging, การแปลง response, caching และ timing
โครงสร้าง: before + after ผ่าน RxJS
()
{
(: , : ): <> {
.();
now = .();
next.().(
( .()),
);
}
}
