@types/agent-base

  • Version 4.2.1
  • Published
  • 3.65 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

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;

            property timeout

            timeout: number | null;

              interface AgentOptions

              interface AgentOptions {}

                property host

                host?: string;

                  property port

                  port?: number;

                    property timeout

                    timeout?: number;

                      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 onejsDocs.io badgeto 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>