Skip to content

Commit b7f1fb8

Browse files
authored
Update README.md
1 parent 85fb059 commit b7f1fb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ To configure the pre-commit hook, simply add a `precommit` npm script. We want t
255255
256256
Interceptors are unique Angular services that we can implement to add behavior to HTTP requests in our application. **HttpInterceptor** provides a way to intercept **HTTP requests** and **responses**. In this sense, each interceptor can handle the request entirely by itself.
257257
258+
![image](https://github.com/user-attachments/assets/c59153d3-4534-4c8a-9bc1-873a37a754f1)
259+
258260
As the diagram above shows, the interceptors are always in the middle of an HTTP request. As middlemen, they allow us to perform operations on the requests on their way to and back from the server, making it a perfect place to centralize code for things like adding headers, passing tokens, caching, and error handling.
259261
260262
1. [Angular Error Interceptor](https://dev.to/this-is-angular/angular-error-interceptor-12bg)

0 commit comments

Comments
 (0)