Support Ukraine 🇺🇦
Support Ukrainian Military to Win The War.
LOGO
Mock Service Worker
Docs
Examples
Introduction
Comparison
FAQ
Getting Started
Install
Define mocks
Mocking REST API
Mocking GraphQL API
Integrate
Browser
Node
Basics
Request handler
Response resolver
Response transformer
Request matching
Api
setupWorker()
start()
stop()
use()
resetHandlers()
restoreHandlers()
printHandlers()
setupServer()
listen()
close()
use()
resetHandlers()
restoreHandlers()
printHandlers()
rest
graphql
query()
mutation()
operation()
link()
request
passthrough
response
once()
networkError()
context
status()
set()
body()
text()
json()
xml()
data()
extensions()
errors()
delay()
fetch()
Cli
init
Extensions
Life-cycle events
Recipes
Cookies
Query parameters
Response patching
Mocking error responses
Usage with CDN
Binary response type
Custom response composition
Debugging uncaught requests
Deferred mounting
Request assertions
Using local HTTPS
API
List of publicly exposed modules.