Course lesson
Intercept and Mock Server-Side HTTP Requests in MSW
To control what happens to requests in Mock Service Worker, you need to intercept them first. Write your first request handler and learn how to intercept a server-side request our application makes in Remix's loader. And mocking a response? Using a Fetch API...
- Duration
- 2 min
- Access
- Included
- Transcript
- Retained from source evidence
To control what happens to requests in Mock Service Worker, you need to intercept them first. Write your first request handler and learn how to intercept a server-side request our application makes in Remix's loader. And mocking a response? Using a Fetch API Response instance, of course!