Skip to main content

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 customise and optimise your browsing experience for testing, debugging, or development purposes.

Types of Rules

Modify Request Body

Adjust outgoing API request payloads to meet testing and development requirements. Add static or dynamic data to refine request structures.

Modify API Response

Simulate API responses to test scenarios and edge cases. Use static data or dynamic transformations to validate application behavior

Modify Headers

Add, remove, or modify HTTP headers for debugging and control

Cancel Request Rule

Block specific network calls or simulate failure scenarios

Modify Query Params

Add, remove, or modify query parameters to refine API requests.

Modify User Agents

Test different browser and device environments by customizing User-Agent headers.

Redirect requests

Redirect requests to different URLs to switch environments or resources during development.

Replace String Rule

Modify URLs or paths by replacing specific substrings.

Insert Script

Inject JavaScript or CSS into web pages for advanced customization.

Delay Network Requests

Simulate real-world network latencies by introducing delays.

Map Local

Serve files from your local environment to test offline changes.

Map Remote

Redirect requests to different servers or environments for advanced testing.