In-page HTTP controller for frontend development. Intercept, modify, and simulate API responses directly in the browser.
tianchangnorth.github.io
PocketMock is a robust, browser-native API mocking tool designed to intercept, modify, and debug HTTP requests directly within your browser. It allows users to define custom rules to mock responses, introduce delays, simulate errors, and generate dynamic data. The tool uses syntax like @email and @image for instant realistic data generation and supports list simulation with the |count syntax. Users can define rules using the addRule(url, method, response) format, where the response can be a static JSON object, a dynamic function, or a status code. The PocketMock dashboard provides an intuitive interface for managing these rules, enabling or disabling them, editing responses, and observing network traffic. Key features include request interception, dynamic responses through functions, a wide range of data generation options, delay simulation for testing loading states, error simulation for resilience testing, and URL matching for precise mocking. The tool is equipped to handle both XHR and Fetch requests, making it versatile for various testing scenarios. For more advanced features, users can refer to the official PocketMock documentation.
Information shown may be outdated. Found an error? Report it here
Auto-fetched from GitHub today.