Skip to Content
DocsTools

Tools

msw-dev-tool tools

Utility tools for msw-dev-tool

Reset Dev tool

Button to reset the dev tool to the initial state.

  • Set all behaviors to default
  • Remove all temp handlers you added.

Add Temp Handler

msw-dev-tool add temp handler

Dialog to add a temporary handler stored in the browser’s session storage.

Field

You can add the following fields to the temporary handler.

FieldDescriptionValidation
MethodHTTP method, Default: GET

Path

Path to mockRequired
DelayDelay time in milliseconds, Default: 0
StatusStatus code: 2xx, 4xx and 5xx, Default: 200
Status TextStatus message for status code
Content TypeMIME type of response body, Default: JSON
Response BodyResponse bodyAppropriate to Content Type
HeaderResponse headerJSON format
Last updated on