UNPKG

@push.rocks/smartrequest

Version:

A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.

24 lines (19 loc) 663 B
// node native scope import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; import * as path from 'path'; import * as stream from 'stream'; export { http, https, fs, path, stream }; // pushrocks scope import * as smartpromise from '@push.rocks/smartpromise'; import * as smarturl from '@push.rocks/smarturl'; import * as smartmime from '@push.rocks/smartmime'; export { smartpromise, smarturl, smartmime }; // third party scope import AgentKeepAlive from 'agentkeepalive'; const agentkeepalive = { HttpAgent: AgentKeepAlive.HttpAgent ?? AgentKeepAlive, HttpsAgent: AgentKeepAlive.HttpsAgent, }; export { agentkeepalive };