fetch-http-message
Version:
Generate an http message string using the fetch API
11 lines (10 loc) • 376 B
text/typescript
/**
* Compatibility Layer for Node.js 0.8+
* Local to this package - contains only needed functions.
*/
/**
* Create a buffer from string, array, or existing buffer
* - Uses Buffer.from() on Node 4.5+
* - Falls back to new Buffer() on Node 0.8-4.4
*/
export declare function bufferFrom(data: string | number[] | Buffer | Uint8Array, encoding?: BufferEncoding): Buffer;