We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbff613 commit b16736fCopy full SHA for b16736f
src/content/docs/workers/runtime-apis/bindings/service-bindings/http.mdx
@@ -56,3 +56,20 @@ export default {
56
},
57
};
58
```
59
+
60
+:::note
61
62
+If you create a new request manually, rather than forwarding an existing one, you need to provide a valid URL with a hostname. For example:
63
64
+```js
65
+export default {
66
+ async fetch(request, env) {
67
+ // provide a valid URL
68
+ let newRequest = new Request("https://valid-url.com", { method: "GET" });
69
+ let response = await env.WORKER_B.fetch(newRequest);
70
+ return response;
71
+ }
72
+};
73
+```
74
75
+:::
0 commit comments