Skip to content

v0.1.0

Choose a tag to compare

@kraciasty kraciasty released this 14 Oct 18:36
· 1 commit to main since this release

Excited to announce the first release of httpc, a lightweight library designed to enhance HTTP client functionality through middleware support.

Features

  • Middleware: chain HTTP request with middleware
  • Client wrapper: wrap standard http.Client with middleware
  • RoundTripper wrapper: customizing the http.RoundTripper with middleware layers

Built-In Middlewares

  • Recover: recovers from panics within middlewares
  • StripSlashes: removes trailing slashes in the request URL
  • Timeout: sets request timeout
  • Secure: ensures secure connections
  • Authorization: adds basic, bearer, or custom authorization headers
  • ContentType, Accept, User-Agent, SetHeader: sets common header for requests

Install with:

go get github.com/kraciasty/httpc@v0.1.0

Check the README for more details.


This sets the foundation for future improvements. Feedback and contributions are welcome!

Full Changelog: https://github.com/kraciasty/httpc/commits/v0.1.0