Expand description
Content rewriting module for path-based routing
This module handles rewriting absolute paths in response content to include the tunnel ID prefix. This is necessary for path-based routing where the tunnel ID is part of the URL path.
For example, if a tunnel ID is “abc123” and the local service returns HTML
with href="/api/users", it needs to be rewritten to href="/abc123/api/users"
so that the browser sends requests to the correct tunnel path.
Enums§
- Rewrite
Strategy - Strategy for rewriting content
Functions§
- rewrite_
response_ content - Main entry point for content rewriting
- should_
rewrite_ content - Check if content type should be rewritten