Skip to content

Move ssl-related params from TCPConnector to request args #1128

Closed
@asvetlov

Description

Long story short

Now ssl configuration is tightly coupled with TCPConnector.

It is not convenient (user should create a connector and pass it into session) and disallows to use the same ClientSession for working with different ssl contexts etc.

I think we should move verify_ssl, fingerprint and ssl_context into ClientSession.request and ClientSession.ws_connect like we have done for proxy and proxy_auth (see #998).
Current TCPConnector's parameters should be kept as default values which may be overridden by request without any warning/error.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions