�
�MMg
= � �� � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl Zd dl
Zd dlZd dl
Zd dlZd dlZddlmZ ddlmZ ddlmZ ddlmZ ej0 rd dlZdad�Zdbd �Zdcddd�Z ded�Zdcdfd�Z dgd�Zdhd�Z ejB ejB e"e"f df Z#ejB e#df Z$ejJ e"ejL e"e$e#f f Z'did�Z( dc djd�Z)dkd�Z* dld�Z+ dld�Z, dmd�Z- ej\ d
�� ej^ de"�� ej` ddde"d� � ej` d!d"d#e"e"fd$d%�&� ej` d'd(d)e"d*� � ej` d+d,d-e"e"fd$d.�&� ej` d/d0d1e" ejb d2�3� fd$d4�&� ej` d5d6d7e"e+d8�9� ej` d:d;d
e"e"fd$d<�&� ej` d=d>e"e"fd$d?�&� ej` d@dAe"e"fdBe,dC�D� ej` dEdFe"ddG�H� ej` dIdJe2dKdL�H� ej` dMdNd$d
dO�P� ej` dQdRd$d$dS�P� ej` dTde3d$d
dU�V� ej` dW ejb dX� dY� � ej` dZd[e3d$d
d\�V� ej` d]d$d$d
e-d^�_� dnd`�� � � � � � � � � � � � � � � � � � � Z4y)o� )�annotationsN� )�Client)�RequestError)�Response)�codesc �: � t j j � } | j dd�� | j � | j dd�� | j � | j dd�� | j � t j j
j
dd� � }|j d
ddd�� |j d
� |j dd� |j dd� |j dd� |j dd� |j dd� |j dd� |j dd� |j dd� |j dd� |j d d!� |j d"d#� |j d$d%� |j d&d'� |j d(d)� |j d*d+� |j d,d-� |j d.d/� | j |� y )0Nz[bold]HTTPX :butterfly:�center)�justifyzA next generation HTTP client.z7Usage: [bold]httpx[/bold] [cyan]<URL> [OPTIONS][/cyan] �leftr T)�padding�pad_edge� Parameter�bold)�no_wrapr �style�Descriptionz-m, --method [cyan]METHODz{Request method, such as GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD.
[Default: GET, or POST if a request body is included]z#-p, --params [cyan]<NAME VALUE> ...�/Query parameters to include in the request URL.z-c, --content [cyan]TEXT�,Byte content to include in the request body.z!-d, --data [cyan]<NAME VALUE> ...�)Form data to include in the request body.z%-f, --files [cyan]<NAME FILENAME> ...�*Form files to include in the request body.z-j, --json [cyan]TEXT�)JSON data to include in the request body.z$-h, --headers [cyan]<NAME VALUE> ...�/Include additional HTTP headers in the request.z --cookies [cyan]<NAME VALUE> ...�"Cookies to include in the request.z--auth [cyan]<USER PASS>��Username and password to include in the request. Specify '-' for the password to use a password prompt. Note that using --verbose/-v will expose the Authorization header, including the password encoding in a trivially reversible format.z--proxy [cyan]URL�ISend the request via a proxy. Should be the URL giving the proxy address.z--timeout [cyan]FLOAT�zTimeout value to use for network operations, such as establishing the connection, reading some data, etc... [Default: 5.0]�--follow-redirects�Automatically follow redirects.�--no-verify�Disable SSL verification.�--http2�@Send the request using HTTP/2, if the remote server supports it.z--download [cyan]FILE�?Save the response content as a file, rather than displaying it.z
-v, --verbosez1Verbose output. Show request as well as response.�--help�Show this message and exit.) �rich�console�Console�print�table�Table�grid�
add_column�add_row)r( r+ s �WC:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\httpx/_main.py�
print_helpr1 s� � ��l�l�"�"�$�G��M�M�+�X�M�>��M�M�O��M�M�2�H�M�E��M�M�O��M�M�A�6� � � �M�M�O��J�J���!�!�!�d�!�;�E� ���[�$��f��M� ���]�#� �M�M�#� @��
�M�M�-�9��
�M�M�"�$R��
�M�M�+�-X��
�M�M�/�4��
�M�M�)�+V�W� �M�M�.�9��
�M�M�*�,P��
�M�M�"� -��
�M�M��S��
�M�M�� @��
�M�M�&�(I�J� �M�M�-�!<�=� �M�M��U��
�M�M��I��
�M�M�/�#V�W� �M�M�(�9�:��M�M�%�� c �N � | j j d� }|�e|j d� \ }}} t j t
t j j |j � � j � S y# t j j $ r Y yw xY w)NzContent-Type�;� )
�headers�get� partition�typing�cast�str�pygments�lexers�get_lexer_for_mimetype�strip�name�util�
ClassNotFound)�response�content_type� mime_type�_s r0 �get_lexer_for_responserG g s� � ��#�#�'�'��7�L���&�0�0��5�� �1�a� ��;�;��X�_�_�;�;�I�O�O�<M�N�S�S��
�
�� �}�}�*�*� ��
� �s �AB �B$�#B$F�http2c
� � |rdnd}| j D ��cg c] \ }}|r|j � n||f�� }}}| j j d� }| j j
j d� }|� d|� d|� �g|D ��cg c]* \ }}|j d� � d|j d� � ���, c}}z }dj
|� S c c}}w c c}}w )NzHTTP/2zHTTP/1.1�ascii� �: �
)r6 �lower�method�decode�url�target�join) �requestrH �versionr@ �valuer6 rO rR �liness r0 �format_request_headersrX t s� � ��h�Z�G�DK�O�O��DS�[�T�5������D�%�0�O� � � �^�^�
"�
"�7�
+�F�
�[�[�
�
�
&�
&�w�
/�F��x�q����'��
+�,�NU�0�NU�{�t�U�4�;�;�w��
��5�<�<��#8�"9�:�g�0�
�E� �9�9�U������
0s � C�/Cr6 c
�* � | j d� }|�t j |� n|j d� }|� d|� d|� �g|D ��cg c]* \ }}|j d� � d|j d� � ���, c}}z }dj |� S c c}}w )NrJ rK rL rM )rP r �get_reason_phraserS ) �http_version�status�
reason_phraser6 rU �reasonr@ rV rW s r0 �format_response_headersr_ � s� � � �!�!�'�*�G� � � ����'�
�
!�
!�'�
*� �
�y��&���6�(�
+�,�NU�0�NU�{�t�U�4�;�;�w��
��5�<�<��#8�"9�:�g�0�
�E� �9�9�U����0s � /Bc �* � t j j � }t | |�� }t j j |ddd�� }|j
|� t j j dddd�� }|j
|� y )N�rH �http� ansi_darkT��theme� word_wrapr5 )r'