Docs on migrating from request to fetch?
Author: JoshuaKGoldbergCreated Dec 29, 2023Updated May 20, 2026
Overview
Coming over from https://github.com/Munter/hyperlink/issues/200: I'd like to migrate hyperlink over to using native fetch(). It looks pretty straightforward except for two request() options:
gzip looks like it can be dropped:
...but strictSSL I don't understand how it's different from fetch():
Could we please have a guide on how to migrate off some of these non-standard properties? I think it'd be helpful for anybody who, like me, isn't familiar with request and is wondering about their nuances.
Note that this is not the same as what's currently in #3143. That's a summary table of alternative libraries that doesn't go into depth.
Source: request/request