Skip to content

Drop per-request cert/verify/trust_env #554

Closed

Description

@lovelydinosaur

I think we should drop per-request cert/verify on the client methods, and only allow them on the client itself.

The reasoning for this is that you don't know when you make a request on the client if you'll actually acquire (and verify) a connection, or if you'll end up re-acquiring a connection (without any verification).

Really the configuration ought to always just be per-connection-pool, rather than per-request.

Dropping these two would also mean removing them from the dispatcher API, which feels cleaner as a result.

We can leave them on the top-level standalone functions, since they apply to the client in that case anyways.

Activity

  1. florimondmanca commented on Nov 29, 2019

    @florimondmanca
    Contributor

    I'd be interested in seeing this happen! It always felt strange to me that these particular two parameters were part of the dispatcher API. To reinforce your point, IMO the use case of verifying/not verifying or using different certs for different requests is narrow enough, and is already supported by the ability to instantiate multiple clients.

  2. added this to the v1.0 milestone on Nov 30, 2019
  3. changed the title [-]Drop per-request `cert`/`verify`[/-] [+]Drop per-request `cert`/`verify`/`trust_env`[/+] on Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions