JSPM

  • Created
  • Published
  • Downloads 85
  • Score
    100M100P100Q93813F
  • License MIT

A high-performance, universal HTTP client for Node.js with caching, retries, queueing, rate limiting, cookies and logging.

Package Exports

  • hyperttp
  • hyperttp/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyperttp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Hyperttp

Advanced HTTP client for Node.js with caching, rate limiting, request queuing, automatic retries, cookie management, and response decompression.

Features

  • Automatic request deduplication
  • LRU caching with TTL
  • Configurable rate limiting
  • Concurrent request management
  • Exponential backoff with jitter
  • Cookie jar support
  • Automatic response parsing (JSON/XML)
  • Compression support (gzip, deflate, brotli)

Buttons to Switch Language

English | Русский


Russian Version

Описание

Расширенный HTTP клиент для Node.js с кэшированием, ограничением запросов, очередями запросов, автоматическими повторными попытками, управлением cookie и декомпрессией ответов.

Возможности

  • Автоматическое предотвращение дублирования запросов
  • LRU кэширование с TTL
  • Настраиваемое ограничение запросов
  • Управление конкурентными запросами
  • Экспоненциальная задержка с джиттером
  • Поддержка cookie jar
  • Автопарсинг JSON/XML
  • Поддержка сжатия (gzip, deflate, brotli)

Пример использования

import HttpClientImproved from './src/Hyperttp/Core/HttpClientImproved';
import Request from './src/Hyperttp/Request';

const client = new HttpClientImproved({
  timeout: 10000,
  maxConcurrent: 10,
  logger: (level, msg) => console.log(`[${level}] ${msg}`),
});

const req = new Request({ scheme: 'https', host: 'example.com', port: 443 });
const data = await client.get(req);
console.log(data);

English Version

Description

Advanced HTTP client for Node.js with caching, rate limiting, request queuing, automatic retries, cookie management, and response decompression.

Features

  • Automatic request deduplication
  • LRU caching with TTL
  • Configurable rate limiting
  • Concurrent request management
  • Exponential backoff with jitter
  • Cookie jar support
  • Automatic response parsing (JSON/XML)
  • Compression support (gzip, deflate, brotli)

Usage Example

import HttpClientImproved from './src/Hyperttp/Core/HttpClientImproved';
import Request from './src/Hyperttp/Request';

const client = new HttpClientImproved({
  timeout: 10000,
  maxConcurrent: 10,
  logger: (level, msg) => console.log(`[${level}] ${msg}`),
});

const req = new Request({ scheme: 'https', host: 'example.com', port: 443 });
const data = await client.get(req);
console.log(data);