Comparing HTTP Request Mechanisms in Browser and Node.js Environments
Browser-based HTTP requests execute within the client-side execution context, while Node.js requests operate in a server-side runtime environment.
Browser-Side Request APIs: Fetch and XMLHttpRequest
Fetch API
The Fetch API is a promise-based interface for initiating network requests in modern browsers.
async function makeApiCall(url, payload) { ...
Posted on Sat, 08 Aug 2026 16:38:09 +0000 by kubis
Downloading Files Asynchronously with Fetch and XHR2
Traditionaly, initiating file downloads in the browser relied on simple techniques like anchor tags (<a href="document.xlsx">) or direct navigation (window.location.href = 'document.xlsx'). The major limitation of these approaches is the inability to track the download lifecycle—there are no events to confirm when the transfer c ...
Posted on Thu, 28 May 2026 23:12:12 +0000 by why2k