Function
makeHostedFetch
(options: HostedHttpClientOptions = {})
Source from the content-addressed store, hash-verified
| 741 | }; |
| 742 | |
| 743 | export const makeHostedFetch = (options: HostedHttpClientOptions = {}): typeof globalThis.fetch => |
| 744 | // oxlint-disable-next-line executor/no-raw-fetch -- boundary: exposes a guarded Fetch API adapter for libraries that require fetch |
| 745 | guardFetch(options.fetch ?? globalThis.fetch, options); |
| 746 | |
| 747 | /** |
| 748 | * The guarded fetch and the guarded HttpClient layer over ONE resolution |