Support passing Request object to fetch function #1598
vincerubinetti
started this conversation in
Ideas
Replies: 3 comments 6 replies
-
Are you sure that this dosen't work? we got test cases for this... Lines 1964 to 1972 in 1c5ed6b |
Beta Was this translation helpful? Give feedback.
5 replies
-
Important addendums
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The regular browser fetch function can take either a
url
string OR aRequest
object as its first parameter:https://developer.mozilla.org/en-US/docs/Web/API/fetch
If I try to pass a
Request
object tonode-fetch
, I get the error:Only absolute URLs are supported
.This would be very nice to have, as I'm using fetch/node-fetch alongside the
CacheStorage
API, which works (best) usingRequest
objects.Beta Was this translation helpful? Give feedback.
All reactions