gentleman
gentleman copied to clipboard
Consolidate interface for reusable HTTP client middlewares
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.Contextcapable.- Minimal, idiomatic interface, inspired by
http.Handler. - Exclusive
net/httptypes and interfaces coupling (third-party package agnostic, evengentleman).
Proposals and ideas are very welcome.
See also related issues:
- #17
- #18
gentleman@v2 is finally out with first-class net/context support: https://github.com/h2non/gentleman