@types/agent-base
- Version 4.2.5
- Published
- 4.64 kB
- 1 dependency
- MIT license
Install
npm i @types/agent-base
yarn add @types/agent-base
pnpm add @types/agent-base
Overview
TypeScript definitions for agent-base
Index
Functions
Interfaces
Type Aliases
Functions
function Agent
Agent: { (opts?: Agent.AgentOptions): Agent.Agent; (callback: Agent.AgentCallback, opts?: Agent.AgentOptions): Agent.Agent;};
Base
http.Agent
implementation. No pooling/keep-alive is implemented by default.
Interfaces
interface Agent
interface Agent extends EventEmitter {}
property addRequest
addRequest: (req?: any, opts?: any) => void;
property callback
callback: AgentCallback;
property freeSocket
freeSocket: (socket: any, opts: any) => void;
property options
options?: AgentOptions | undefined;
property timeout
timeout: number | null;
interface AgentOptions
interface AgentOptions {}
property host
host?: string | undefined;
property port
port?: number | undefined;
property timeout
timeout?: number | undefined;
index signature
[key: string]: any;
Type Aliases
type AgentCallback
type AgentCallback = ( req?: any, opts?: { secureEndpoint: boolean; }) => void;
Package Files (1)
Dependencies (1)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/agent-base
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/agent-base)
- HTML<a href="https://www.jsdocs.io/package/@types/agent-base"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2603 ms. - Missing or incorrect documentation? Open an issue for this package.