ó
    †>i_	  ã                   ó>   • S r SSKrSSKJr  SSKJr   " S S\5      rg)zá

requests_toolbelt.ssl_adapter
=============================

This file contains an implementation of the SSLAdapter originally demonstrated
in this blog post:
https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/

é    N)ÚHTTPAdapteré   )Úpoolmanagerc                   ó’   ^ • \ rS rSrSr\R                  S/-   rS	U 4S jjrS
S jr\	R                  S:¼  a  U 4S jrSrU =r$ SrU =r$ )Ú
SSLAdapteré   a  
A HTTPS Adapter for Python Requests that allows the choice of the SSL/TLS
version negotiated by Requests. This can be used either to enforce the
choice of high-security TLS versions (where supported), or to work around
misbehaving servers that fail to correctly negotiate the default TLS
version being offered.

Example usage:

    >>> import requests
    >>> import ssl
    >>> from requests_toolbelt import SSLAdapter
    >>> s = requests.Session()
    >>> s.mount('https://', SSLAdapter(ssl.PROTOCOL_TLSv1))

You can replace the chosen protocol with any that are available in the
default Python SSL module. All subsequent requests that match the adapter
prefix will use the chosen SSL version instead of the default.

This adapter will also attempt to change the SSL/TLS version negotiated by
Requests when using a proxy. However, this may not always be possible:
prior to Requests v2.4.0 the adapter did not have access to the proxy setup
code. In earlier versions of Requests, this adapter will not function
properly when used with proxies.
Ússl_versionc                 ó:   >• Xl         [        [        U ]  " S0 UD6  g )N© )r	   Úsuperr   Ú__init__)Úselfr	   ÚkwargsÚ	__class__s      €Ú[/home/mande/repo/quber/.venv/lib/python3.13/site-packages/requests_toolbelt/adapters/ssl.pyr   ÚSSLAdapter.__init__0   s   ø€ Ø&ÔäŒj˜$Ò(Ñ2¨6Ó2ó    c                 óP   • [         R                  " UUUU R                  S9U l         g )N)Ú	num_poolsÚmaxsizeÚblockr	   )r   ÚPoolManagerr	   )r   Úconnectionsr   r   s       r   Úinit_poolmanagerÚSSLAdapter.init_poolmanager5   s'   € Ü&×2Ò2Ø!ØØØ×(Ñ(ñ	*ˆÕr   i  c                 óJ   >• U R                   US'   [        [        U ]  " U0 UD6$ )Nr	   )r	   r   r   Úproxy_manager_for)r   Úargsr   r   s      €r   r   ÚSSLAdapter.proxy_manager_for@   s*   ø€ Ø$(×$4Ñ$4ˆF�=Ñ!Üœ TÒ<¸dÐMÀfÑMÐMr   )r   r	   )N)F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú	__attrs__r   r   ÚrequestsÚ	__build__r   Ú__static_attributes__Ú__classcell__)r   s   @r   r   r      sG   ø† ñð4 ×%Ñ%¨¨Ñ7€I÷3ô
*ð ×Ñ˜XÓ%÷	Nó 	Nõ	 &r   r   )r$   r&   Úrequests.adaptersr   Ú_compatr   r   r   r   r   Ú<module>r,      s#   ðñ	ó å )å !ô/N�õ /Nr   