DocsCore Conceptsrules

Rules Engine

Modify traffic on the fly without writing code. The Rules Engine provides a visual interface for common proxy tasks.

Rule Types

1. Map Local

Serve a local file instead of the server's response. Great for mocking APIs or testing frontend assets locally.

2. Map Remote

Redirect requests from one URL to another. E.g., redirect api.prod.com to localhost:3000.

3. Mock Response

Return a static response with custom status code, headers, and body.

4. Breakpoint

Pause the request or response to edit it manually before it proceeds.

Priority

Rules are applied in order. You can drag and drop rules to change their priority.