Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate interface for reusable HTTP client middlewares #19

Open
h2non opened this issue Dec 16, 2016 · 1 comment
Open

Consolidate interface for reusable HTTP client middlewares #19

h2non opened this issue Dec 16, 2016 · 1 comment

Comments

@h2non
Copy link
Owner

h2non commented Dec 16, 2016

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:

@h2non h2non added this to the v2.0.0 milestone Dec 16, 2016
@h2non h2non changed the title Consolidate middleware/plugin interface for HTTP client middlewares Consolidate interface for reusable HTTP client middlewares Dec 16, 2016
@h2non h2non added design and removed help wanted labels Dec 16, 2016
@h2non
Copy link
Owner Author

h2non commented Jul 26, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant