How to Map Local (File)
Sagar Soni
February 18, 2025
1MIN READ
Learn how to use Requestly’s Map Local feature to serve local files for testing and development, speeding up your workflow.

Introduction
Map Local feature lets you serve the content of any local file as the response to an intercepted request in real time. This can greatly speed up development and testing as you can make changes in the file locally and test them live without updating them on the server.
Use Cases
- Map production JS/CSS/HTML files to local files for testing.
- Create Mock APIs using local files and use them in production.
How to Use Map Local?
In this example, we’ll use Requestly’s map local feature to serve the content of https://example.com from a local file. Here’s a quick peek at what we’ll do using Map Local. To do this, follow these steps:

- Download and Install the Requestly desktop app.
- Open the app, and click Connect Apps.
- Choose the browser you want to launch and open https://example.com
- In the Network Traffic table in the Requestly app, right-click on the request (example.com) and then select Redirect URL (Map Local/Remote)
- Select [Map Local](<https://docs.requestly.io/desktop-app/mac/features/map-local>) option and select the file from which you must serve the content.
- Click Create Rule and reload the website again to see the updated results.
Written by
Sagar Soni
Sagar is the co-founder and CTO of Requestly. When he’s not busy architecting the next big thing in software development, you’ll likely find him behind the wheel, cruising the streets and enjoying the thrill of the drive. For Sagar, it’s all about the code by day and the open road by night.
Contents
Subscribe for latest updates
Share this article
Related posts

Organized 125k APIs and improved productivity by 20% using the Requestly API Client: Cyrisma
Cyrisma improved API management with Requestly’s API client, boosting security, reducing errors, and accelerating development. Learn how they did it
Dinesh Thakur
February 19, 2025
How to Test FastAPI Efficiently with Requestly API Client
Learn how to test FastAPI APIs with Requestly API Client for easy debugging, request modifications, and automation. Take control over your API testing workflow!
Dinesh Thakur
February 13, 2025

How to Export Postman Collection
Learn how to export a Postman collection easily and save it as a JSON file for backup or sharing.
Kanishk Rawat
February 13, 2025