Got implements RFC 7234 compliant HTTP caching which works out of the box in-memory and is easily pluggable with a wide range of storage adapters. Got uses Keyv internally to support a wide range of storage adapters. For something more scalable you could use an official Keyv storage adapter. Hooks allow modifications during the request lifecycle. Hook functions may be async and are run serially. Got will make no further changes to the request before it is sent. This is especially useful in conjunction with got.extend() when you want to create an API client that, for example, uses HMAC-signing. You can override the request function by returning a ClientRequest-like instance or a IncomingMessage-like instance. This is very useful when creating a custom cache mechanism. The response object will typically be a Node.js HTTP response stream, however, if returned from the cache it will be a response-like object which behaves in the same way.

Features

  • Promise API, stream API, and pagination API
  • HTTP2 support, request cancelation, and RFC compliant caching
  • Follows redirects, retries on failure, and progress events
  • Handles gzip/deflate/brotli, timeout handling, and errors with metadata
  • JSON mode, WHATWG URL support, and HTTPS API
  • Instances with custom defaults, includes types, and it's composable

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Got

Got Web Site

Other Useful Business Software
Run Any Workload on Compute Engine VMs Icon
Run Any Workload on Compute Engine VMs

From dev environments to AI training, choose preset or custom VMs with 1–96 vCPUs and industry-leading 99.95% uptime SLA.

Compute Engine delivers high-performance virtual machines for web apps, databases, containers, and AI workloads. Choose from general-purpose, compute-optimized, or GPU/TPU-accelerated machine types—or build custom VMs to match your exact specs. With live migration and automatic failover, your workloads stay online. New customers get $300 in free credits.
Try Compute Engine
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Got!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Libraries, TypeScript API Clients

Registered

2021-06-15