PHP 8.2.30
Preview: index.d.ts Size: 1.72 KB
/opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/agentkeepalive/index.d.ts

import * as http from 'http';
import * as https from 'https';

interface PlainObject {
  [key: string]: any;
}

declare class HttpAgent extends http.Agent {
  constructor(opts?: AgentKeepAlive.HttpOptions);
  readonly statusChanged: boolean;
  createSocket(req: http.IncomingMessage, options: http.RequestOptions, cb: Function): void;
  getCurrentStatus(): AgentKeepAlive.AgentStatus;
}

interface Constants {
  CURRENT_ID: Symbol;
  CREATE_ID: Symbol;
  INIT_SOCKET: Symbol;
  CREATE_HTTPS_CONNECTION: Symbol;
  SOCKET_CREATED_TIME: Symbol;
  SOCKET_NAME: Symbol;
  SOCKET_REQUEST_COUNT: Symbol;
  SOCKET_REQUEST_FINISHED_COUNT: Symbol;
}

declare class AgentKeepAlive extends HttpAgent {}

declare namespace AgentKeepAlive {
  export interface AgentStatus {
    createSocketCount: number;
    createSocketErrorCount: number;
    closeSocketCount: number;
    errorSocketCount: number;
    timeoutSocketCount: number;
    requestCount: number;
    freeSockets: PlainObject;
    sockets: PlainObject;
    requests: PlainObject;
  }

  interface CommonHttpOption {
    keepAlive?: boolean | undefined;
    freeSocketTimeout?: number | undefined;
    freeSocketKeepAliveTimeout?: number | undefined;
    timeout?: number | undefined;
    socketActiveTTL?: number | undefined;
  }

  export interface HttpOptions extends http.AgentOptions, CommonHttpOption { }
  export interface HttpsOptions extends https.AgentOptions, CommonHttpOption { }

  export class HttpsAgent extends https.Agent {
    constructor(opts?: HttpsOptions);
    readonly statusChanged: boolean;
    createSocket(req: http.IncomingMessage, options: http.RequestOptions, cb: Function): void;
    getCurrentStatus(): AgentStatus;
  }

  export const constants: Constants;
}

export = AgentKeepAlive;

Directory Contents

Dirs: 1 × Files: 6

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2026-03-19 07:09:42
Edit Download
144 B lrw-r--r-- 2026-03-09 06:51:26
Edit Download
8.78 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download
1.72 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download
169 B lrw-r--r-- 2026-03-09 06:51:26
Edit Download
1.12 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download
1.44 KB lrw-r--r-- 2026-03-09 06:51:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).