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

You Might Also Like
SKUDONET Open Source Load Balancer Icon
SKUDONET Open Source Load Balancer

Take advantage of Open Source Load Balancer to elevate your business security and IT infrastructure with a custom ADC Solution.

SKUDONET ADC, operates at the application layer, efficiently distributing network load and application load across multiple servers. This not only enhances the performance of your application but also ensures that your web servers can handle more traffic seamlessly.
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