Skip to content

Commit 1769b67

Browse files
chore: apply automated updates
1 parent 24b9271 commit 1769b67

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/2.utils/1.request.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,16 @@ app.get("/", (event) => {
346346
});
347347
```
348348

349+
### `requestWithBaseURL(req, base)`
350+
351+
Create a lightweight request proxy with the base path stripped from the URL pathname.
352+
353+
### `requestWithURL(req, url)`
354+
355+
Create a lightweight request proxy that overrides only the URL.
356+
357+
Avoids cloning the original request (no `new Request()` allocation).
358+
349359
### `toRequest(input, options?)`
350360

351361
Convert input into a web [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request).

0 commit comments

Comments
 (0)