Generate an HTTP message string using the Fetch API. Compatible with both browser and Node.js environments. Current stable version is 1.0.12. It takes a URL and options (method, headers, body) and returns a raw HTTP request string. Differentiates by being a lightweight, TypeScript-ready utility for creating HTTP message strings without making actual network requests.
npm install fetch-http-messageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generates an HTTP request message string from a URL and Fetch API options.
Ensure header names are valid HTTP header names and values are strings.
Only provide those three options if they are intended to be used.
Pass a string or null/undefined as body.
Use default import: import fetchMessage from 'fetch-http-message'
No dependency data recorded yet.