Skip to content

xmidt-org/httpaux

Repository files navigation

httpaux

The missing functionality from net/http

Build Status codecov.io Go Report Card Quality Gate Status Apache V2 License GitHub Release GoDoc

Summary

httpaux augments golang's net/http package with a few extra goodies.

  • Middleware for clients in the form of http.RoundTripper decoration
  • Standardized middleware interfaces
  • Busy server middleware to limit serverside traffic
  • Observable http.ResponseWriter middleware that provides a standard way for http.Handler decorators to examine what was written to the response by nested handlers
  • Gate middleware to control server and client traffic
  • An efficient, immutable Header type for writing static headers
  • A configurable ConstantHandler that writes hardcoded information to responses
  • httpmock package for mock-style testing with HTTP clients
  • retry package with configurable retry for clients including exponential backoff
  • erraux package with a configurable Encoder ruleset for representing errors as HTTP responses

Table of Contents

Code of Conduct

This project and everyone participating in it are governed by the XMiDT Code Of Conduct. By participating, you agree to this Code.

Install

go get github.com/xmidt-org/httpaux

Contributing

Refer to CONTRIBUTING.md.