Web Fetch API

    When you do this:

    1. JSON.stringify({ hello: "there" })
    2. );
    3. console.log(json);
    4. // { hello: "there" }

    Rather than pick a server-side API, Remix adopts the Web Fetch API for all http handling. Note that our deployment wrappers like are simply adapters between the deployment server’s API and the Web API. @remix-run/express interperets a Web API Response that you return from a loader or your server entry into an express response.

    Remix adds Request, Response, Headers, and fetch to your loader’s global context, so you can use them anywhere just like in the browser. We figure if made it into the global context of node, we can add these browser globals to make Remix a little nicer to work with.

    MDN Docs