
    $ht                     *    S r SSKJr   " S S\5      rg)z
requests_toolbelt.adapters.host_header_ssl
==========================================

This file contains an implementation of the HostHeaderSSLAdapter.
    )HTTPAdapterc                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )HostHeaderSSLAdapter   aq  
A HTTPS Adapter for Python Requests that sets the hostname for certificate
verification based on the Host header.

This allows requesting the IP address directly via HTTPS without getting
a "hostname doesn't match" exception.

Example usage:

    >>> s.mount('https://', HostHeaderSSLAdapter())
    >>> s.get("https://93.184.216.34", headers={"Host": "example.org"})

c                   > S nUR                    H(  nUR                  5       S:X  d  M  UR                   U   n  O   U R                  R                  nU(       a  X5S'   OSU;   a  UR	                  SS 5        [
        [        U ]  " U40 UD6$ )Nhostassert_hostname)headerslowerpoolmanagerconnection_pool_kwpopsuperr   send)selfrequestkwargshost_headerheaderconnection_pool_kwargs	__class__s         b/var/www/html/shao/venv/lib/python3.13/site-packages/requests_toolbelt/adapters/host_header_ssl.pyr   HostHeaderSSLAdapter.send   s    ooF||~'%oof5 &
 "&!1!1!D!D8C#45"88"&&'8$?)45gHHH     )__name__
__module____qualname____firstlineno____doc__r   __static_attributes____classcell__)r   s   @r   r   r      s    I Ir   r   N)r    requests.adaptersr   r   r   r   r   <module>r$      s    *I; Ir   