
    +g                     R    S SK r S SK JrJr  S SKJr   " S S5      r " S S\5      rg)    N)Response
exceptions)
ssl_verifyc                   R    \ rS rSrSS\4S jjr\S\R                  4S j5       rSr	g)	
HttpClient   Nreturnc                     [         eN)NotImplementedError)selfurlparamskwargss       c/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/webdriver_manager/core/http.pygetHttpClient.get   s    !!    respc           
      &   U R                   nUS:X  a  [        SU R                   35      eUS:X  a  [        S5      eU R                   S:w  aF  [        SU R                   SU R                  R                   S[        U R                  5       S	35      eg )
Ni  zThere is no such driver by url i  z4API Rate limit exceeded. You have to add GH_TOKEN!!!   zresponse body:
z
request url:
z
response headers:

)status_code
ValueErrorr   textrequestdictheaders)r   r   s     r   validate_responseHttpClient.validate_response   s    &&#>txxjIJJCSUU$"499+ .!!%!1!1 2 3&&*4<<&8%9=  %r    r   )
__name__
__module____qualname____firstlineno__r   r   staticmethodrequestsr   __static_attributes__r!   r   r   r   r      s/    " "  1 1  r   r   c                   (    \ rS rSrS rS\4S jrSrg)WDMHttpClient   c                 "    [        5       U l        g r   )r   _ssl_verify)r   s    r   __init__WDMHttpClient.__init__   s    %<r   r	   c                      [         R                  " SXR                  SS.UD6nU R                  U5        U$ ! [        R                   a    [        R                  " S5      ef = f)NT)r   verifystreamz&Could not reach host. Are you offline?r!   )r'   r   r-   r   ConnectionErrorr   )r   r   r   r   s       r   r   WDMHttpClient.get   sq    	X<< I 0 0IAGID 	t$ )) 	X,,/UWW	Xs	   #8 +A#)r-   N)r"   r#   r$   r%   r.   r   r   r(   r!   r   r   r*   r*      s    (H r   r*   )r'   r   r   webdriver_manager.core.configr   r   r*   r!   r   r   <module>r6      s$     ) 4 &J r   