To intercept and modify HTTP requests globally, you would implement a class that uses the ________ interface.
- HttpClient
- HttpHandler
- HttpInterceptor
- HttpRequest
To intercept and modify HTTP requests globally in an Angular application, you would implement a class that uses the HttpInterceptor interface. This interface provides methods for intercepting both the request and the response, allowing you to add headers, modify requests, or handle errors at a global level.
Loading...
Related Quiz
- For handling complex state transitions in Ngxs, one would utilize ________.
- You have been tasked with improving the initial load time of an Angular application. Which of the following techniques would be most effective?
- Which directive in Angular is used to add or remove an element from the DOM based on a condition?
- To apply styles scoped to a particular component and prevent them from affecting other elements outside the component, you would use _____.
- In the context of Reactive Forms, which property indicates the current value of the FormControl, FormGroup, or FormArray instance?