HTTP Rules in Requestly enable you to efficiently control web traffic. With these rules, you can modify requests and responses, redirect or block network calls, insert custom scripts, and manage headers. These powerful tools help you customize and optimize your browsing experience for testing, debugging, or development purposes.
Types of Rules
Adjust outgoing API request payloads to meet testing and development requirements. Add static or dynamic data to refine request structures.
Simulate API responses to test scenarios and edge cases. Use static data or dynamic transformations to validate application behavior
Add, remove, or modify HTTP headers for debugging and control
Block specific network calls or simulate failure scenarios
Add, remove, or modify query parameters to refine API requests.
Test different browser and device environments by customizing User-Agent headers.
Redirect requests to different URLs to switch environments or resources during development.
Modify URLs or paths by replacing specific substrings.
Inject JavaScript or CSS into web pages for advanced customization.
Simulate real-world network latencies by introducing delays.
Serve files from your local environment to test offline changes.
Redirect requests to different servers or environments for advanced testing.