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

Make Endpoint connectors swappable #148

Closed
wants to merge 6 commits into from

Commits on Dec 3, 2019

  1. feat: make Endpoint connector swappable

    Change the `connect()` API to lift up the use of `connector()` to
    `Endpoint::connect()`, allowing users to provide their own
    implementations (for example, Unix-domain sockets).
    Any type which impls `tower_make::MakeConnection` is
    suitable.
    
    To avoid breaking the default case of HTTP(S), introduce
    `connect_with_connector()` and retain `connect()`, which creates the
    default connector according to the activated feature gate and passes it
    to `connect_with_connector()`.
    
    Fixes: hyperium#136
    akshayknarayan committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    36757ba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6cd5855 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2db60d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8efaba6 View commit details
    Browse the repository at this point in the history
  5. endpoint: Make endpoint contain a connector

    Instead of providing a connector in the call to `connect()`, make `Endpoint`
    contain a connector, by default an `HTTPConnector`, which the caller can
    swap.
    akshayknarayan committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    fd74709 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2019

  1. Configuration menu
    Copy the full SHA
    202212c View commit details
    Browse the repository at this point in the history