httphedge is a Go library designed to reduce tail latency in HTTP services by implementing Request Hedging.
When a request is slower than expected (e.g., hitting a P95 or P99 latency spike), the package automatically fires a second "hedge" request. The library then returns the result of whichever request finishes first and cancels the other. It supports both Static delays (fixed duration) and Dynamic adaptive delays (using rolling percentiles) to intelligently decide when to hedge based on real-time network conditions.