handle 0.3.2+1 handle: ^0.3.2+1 copied to clipboard
A simple library for composing HTTP clients, creating services to make HTTP requests.
Handle HTTP Clients & Services #
A simple library for composing HTTP clients, and creating services to make HTTP requests. Uses the package:http's Client.
Features #
Handle has number of features to make HTTP requests flexible, and easy to use:
- Combine different client to create the perfect HTTP client for your needs.
- Compatibility with package:http's Client - You can wrap with existing http Clients, like RetryClient
- Very minimum boilerplate for creating REST requests, and services with no code generation.
- Extensive test suite and benchmarks to ensure reliability, and high performance.
Documentation #
See the API documentation for details on the following topics:
Latest benchmark results #
For comparing client performance from this package, I've included benchmarks for this library's clients, and package:http's Client with no external dependency in benchmarks/
directory.
HttpClientListSerializationBenchmark(RunTime): 10462919.0 us.
RestClientListSerializationBenchmark(RunTime): 10433037.0 us.
RestClientListAsyncSerializationBenchmark(RunTime): 10651653.0 us.
HttpClientSingleSerializationBenchmark(RunTime): 313983.85714285716 us.
RestClientSingleSerializationBenchmark(RunTime): 314514.85714285716 us.
RestClientSingleAsyncSerializationBenchmark(RunTime): 313982.4285714286 us.
Benchmarks last updated on 15 June, 2023.