Skip to content

Glossary: Testing Web Apps

Request handler

Also written: handlers, http.post, HttpResponse.json, resolver

An MSW function that answers one kind of request. `http.post("/api/orders", resolver)` handles POSTs to that path and returns a reply built with HttpResponse.json.

Where the book teaches it

Related terms

MSWserver.use