
    h                    z    S SK Jr  S SKrS SKrSSKJrJrJrJrJ	r	J
r
JrJrJrJr   " S S5      r " S S\5      rg)	    )annotationsN   )
URL
ExtensionsHeaderTypesOriginRequestResponseenforce_bytesenforce_headersenforce_urlinclude_request_headersc                      \ rS rSrSSSS.           SS jjr\R                  SSSS.           S	S jj5       rS
S jrSr	g)RequestInterface   N)headerscontent
extensionsc                   [        USS9n[        USS9n[        USS9n[        X2US9n[	        UUUUUS9nU R                  U5      n UR                  5         UR                  5         U$ ! UR                  5         f = fNmethod)nameurlr   )r   r   )r   r   r   r   r   )r   r   r   r   r	   handle_requestreadcloseselfr   r   r   r   r   requestresponses           K/var/www/html/env/lib/python3.13/site-packages/httpcore/_sync/interfaces.pyr   RequestInterface.request   s     vH5#E*!'	: *'GL!
 &&w/	MMONN NNs   A* *A<c             #     #    [        USS9n[        USS9n[        USS9n[        X2US9n[	        UUUUUS9nU R                  U5      n Uv   UR                  5         g ! UR                  5         f = f7fr   )r   r   r   r   r	   r   r   r   s           r!   streamRequestInterface.stream4   s      vH5#E*!'	: *'GL!
 &&w/	NNNHNNs   AA4
A A4A11A4c                    [        5       eNNotImplementedError)r   r   s     r!   r   RequestInterface.handle_requestS       !##     )r   bytes | strr   URL | bytes | strr   r   r   %bytes | typing.Iterator[bytes] | Noner   Extensions | Nonereturnr
   )r   r.   r   r/   r   r   r   r0   r   r1   r2   ztyping.Iterator[Response])r   r	   r2   r
   )
__name__
__module____qualname____firstlineno__r   
contextlibcontextmanagerr$   r   __static_attributes__r-   r,   r!   r   r      s      $9=(, 
  7 & 
>   $9=(, 
  7 & 
# <$r,   r   c                  Z    \ rS rSrSS jrSS jrSS jrSS jrSS jrSS jr	SS jr
S	rg
)ConnectionInterfaceW   c                    [        5       er'   r(   r   s    r!   r   ConnectionInterface.closeX   r+   r,   c                    [        5       er'   r(   r>   s    r!   infoConnectionInterface.info[   r+   r,   c                    [        5       er'   r(   )r   origins     r!   can_handle_request&ConnectionInterface.can_handle_request^   r+   r,   c                    [        5       e)a~  
Return `True` if the connection is currently able to accept an
outgoing request.

An HTTP/1.1 connection will only be available if it is currently idle.

An HTTP/2 connection will be available so long as the stream ID space is
not yet exhausted, and the connection is not in an error state.

While the connection is being established we may not yet know if it is going
to result in an HTTP/1.1 or HTTP/2 connection. The connection should be
treated as being available, but might ultimately raise `NewConnectionRequired`
required exceptions if multiple requests are attempted over a connection
that ends up being established as HTTP/1.1.
r(   r>   s    r!   is_available ConnectionInterface.is_availablea   s      "##r,   c                    [        5       e)z
Return `True` if the connection is in a state where it should be closed.

This either means that the connection is idle and it has passed the
expiry time on its keep-alive, or that server has sent an EOF.
r(   r>   s    r!   has_expiredConnectionInterface.has_expireds        "##r,   c                    [        5       e)z4
Return `True` if the connection is currently idle.
r(   r>   s    r!   is_idleConnectionInterface.is_idle|   s     "##r,   c                    [        5       e)z
Return `True` if the connection has been closed.

Used when a response is closed to determine if the connection may be
returned to the connection pool or not.
r(   r>   s    r!   	is_closedConnectionInterface.is_closed   rM   r,   r-   N)r2   None)r2   str)rD   r   r2   bool)r2   rV   )r3   r4   r5   r6   r   rA   rE   rH   rK   rO   rR   r9   r-   r,   r!   r;   r;   W   s%    $$$$$$$$r,   r;   )
__future__r   r7   typing_modelsr   r   r   r   r	   r
   r   r   r   r   r   r;   r-   r,   r!   <module>rZ      s7    "    @$ @$F2$* 2$r,   