Map Local

Use the Map Local feature in Requestly to instantly test local file changes by serving them as live responses for intercepted requests.


The Map Local feature in Requestly enables you to serve any local file as the response for an intercepted request in real time. This is particularly useful for testing, as you can modify the local file and immediately see the changes without deploying them to a server.

This feature is only available in the Requestly Desktop App.

Why Use Map Local?

  • Map Production JS/CSS/HTML Files to Local Files: Test and debug changes to production assets by mapping them to local versions, ensuring seamless updates before deployment.

  • Create Mock APIs Using Local Files: Simulate API responses by serving local JSON or other data files, allowing for more flexible and controlled testing.

How to Create a Map Local

Using Map Local, you can replace a server response with a local file. Follow these steps:

1

Install Requestly Desktop App

Download and install the Requestly Desktop App to access the Map Local feature.

2

Connect to the Browser

Open the Requestly Desktop app and click Connect Apps to establish the connection. Then, select your browser and open it. Once the browser is open, go to the website where you want to use the Map Local feature.

3

Capture Network Traffic

In the Network Traffic table of the Requestly app, locate the request you want to modify (e.g., https://example.com). Right-click on it and choose Redirect URL (Map Local/Remote).

4

Specify the Local File

Requestly serves the local file in real-time. Any changes made to the file are immediately reflected in the responses, eliminating the need to update the rule.

Choose the Map Local option in Redirects to and browse your system to select the local file that should replace the server’s response.

This file will now be used instead of the original request’s response.

5

Save and Activate the Rule

Click Save Rule to save the configuration.

Reload the website to see the local file replacing the server response in real time. Ensure the rule is enabled so it remains active and correctly applied.

There are multiple ways to validate if a rule is applied or not, learn more about how to validate rule execution.

Updated on