Getting Started

Introduction

Installation

API Client

Overview

Make an API Request

Replay request from History

Import from cURL

Inspect Traffic

Overview

Filtering Traffic

Save Session

View Request/Response Details

HTTP Rules (Modify Traffic)

Overview

Redirect URL (Map Local, Map Remote)

Replace Strings (Switch Hosts, API Endpoints)

Modify Headers

Modify Request Body

Modify Response Body

Modify Query Params

Modify Cookies

Modify DOM/Inject scripts

Modify User Agents

Delay Request

Cancel Rule

Organizing Rules

Import/Export Rules from File

Pause/Resume Requestly

Rule Operators

Advance Targeting

Sharing Rules

Map Local

Map Remote

Pinning Rules

GraphQL Support

Edit and Replay

Import Setting from Charles Proxy

Test URL Condition

Mock Server

Overview

Create New Mock API

Test Mock API

Pre-Configured Mocks

File Server

Overview

Create New Mock File

Sessions

Overview

Map Local

Map Local feature lets you to serve any local file as the response of an intercepted request in Realtime. You can make changes in the file locally and test them live without updating them on the server. when a request is made to a URL that matches a defined rule, Requestly intercepts the request and serves the specified local file as the response to the client, just as if it was the normal remote response. Making it ideal for testing different scenarios.

How to use?

<aside> 💡 ℹ️ INFO This feature is only available in Desktop App. ****Download

</aside>

You can use the Redirect rule to map a request to a local file. This redirects the request to the local file, causing it to be served in response to that request.

Untitled

Popular Use Cases

Example

In this example we'll create a rule, by utilizing Requestly's map local feature, we'll try to hit an external API endpoint which will intercept and redierct this request to the local file which we will be served as a respone to the client instead of what was intended from the production server.

Consider this as the content of local file :

{
  "success": {
    "status": "success",
    "data": {
      "name": "John Doe",
      "age": 30,
      "email": "john.doe@example.com"
    }
  },
  "error": {
    "status": "error",
    "message": "Failed to retrieve data"
  },
  "timeout": {
    "status": "timeout",
    "message": "Request timed out"
  }
}

Untitled

Untitled

Note The local file to which you want to redirect the request to, must be present in your local machine.

FAQ