Skip to content

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

License

Notifications You must be signed in to change notification settings

Dirold2/hyperttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Usage Example

import { HttpClientImproved, Request } from "hyperttp";

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);

Other Languages

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published