Commit 4d1a390
Document the expected input/output of rewriteRequestUrl
Summary:
[`rewriteRequestUrl`](https://metrobundler.dev/docs/configuration/#rewriterequesturl) usually receives paths (eg, from `req.url` when processing a request), but sometimes also absolute URLs (eg, when processing source URL in a symbolicate payload), and the returned value is expected to mirror the input.
This just caught me out, so I'm clarifying in the docs.
We should change this API. It's especially awkward now that Node's `url.parse` is deprecated.
Changelog: Docs
Reviewed By: vzaidman
Differential Revision: D91132265
fbshipit-source-id: 49c2f1af79415ce3a8dcdd099a90c670db2cf7211 parent ff58afb commit 4d1a390
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
647 | 653 | | |
648 | 654 | | |
649 | 655 | | |
| |||
0 commit comments