hagent is a foundational Node.js module designed to provide HTTP and HTTPS agent functionality specifically tailored for use with Whistle, a cross-platform network debugging and proxy tool. It enables Whistle to manage and proxy network requests at a lower level, handling connection pooling and socket management. Currently at version `0.9.3`, the package has not seen active development since 2020, with its last commit dating back approximately four years. This indicates an abandoned status, meaning it is no longer maintained and may not be compatible with newer Node.js versions or contain unpatched vulnerabilities. Its core functionality revolves around extending Node.js's native `http.Agent` to integrate with Whistle's proxying mechanisms, offering control over persistent connections.
npm install hagentVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to instantiate and use `HttpClientAgent` to make an HTTP request. The agent is configured to connect through a hypothetical Whistle proxy, showing how it would be integrated into a Node.js HTTP client call.
Consider migrating to actively maintained HTTP agent solutions or newer versions of Whistle that might embed similar functionality or provide alternative integration points. If Whistle itself is still in use, check its documentation for recommended agent configurations.
Always use `const { HttpClientAgent } = require('hagent');` or `const hagent = require('hagent');` for module imports.Perform a thorough security audit before considering use, or ideally, replace with a maintained alternative. Rely on Whistle's own mechanisms if they provide a maintained HTTP agent solution.
Ensure you are using `require()` for this CommonJS-only package: `const { HttpClientAgent } = require('hagent');`Verify that `hagent` is correctly installed (`npm install hagent`) and that `HttpClientAgent` or `HttpsClientAgent` are correctly imported and instantiated before being passed to Node.js's native `http.request` or `https.request` methods.
No dependency data recorded yet.