gentleman icon indicating copy to clipboard operation
gentleman copied to clipboard

Consolidate interface for reusable HTTP client middlewares

Open h2non opened this issue 9 years ago • 1 comments

This thread is intended to provide a design discussion frame in order to consolidate a homogeneous and versatile HTTP client middleware interface that can be used in gentleman, as well as in other packages.

Ideally, the conclusion of this proposal will be introduced in gentleman@v2.

Proposal MVP:

  • context.Context capable.
  • Minimal, idiomatic interface, inspired by http.Handler.
  • Exclusive net/http types and interfaces coupling (third-party package agnostic, even gentleman).

Proposals and ideas are very welcome.

See also related issues:

  • #17
  • #18

h2non avatar Dec 16 '16 19:12 h2non

gentleman@v2 is finally out with first-class net/context support: https://github.com/h2non/gentleman

h2non avatar Jul 26 '17 08:07 h2non