Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
_api.cpython-313.pyc168 linesDownload Raw Back to __pycache__
1�

2�j�-����SSKJr SSKrSSKJr SSKJr SSKJr SSK	J3r4 SSKJrJ
r
JrJrJrJrJrJrJr SS	KJr \R.(aSSKr/S5QrSSSSSSSSS\SSSS
.
SSjjr\SSSSSSSSS\SSSS
.
SSjj5rSSSSSSS\SS.	SSjjrSSSSSSS\SS.	SSjjrSSSSSSS\SS.	SSjjrSSSSSSSSSSS\SS.
SSjjrSSSSSSSSSSS\SS.
SSjjr SSSSSSSSSSS\SS.
SSjjr!SSSSSS\SSS.	SSjjr"g)�)�annotationsN)�contextmanager�)�Client)�DEFAULT_TIMEOUT_CONFIG)�Response)	�	AuthTypes�CookieTypes�HeaderTypes�6ProxyTypes�QueryParamTypes�RequestContent�RequestData�RequestFiles�TimeoutTypes)�URL)	�delete�get�head�options�patch�post�put�request�streamFT)
�params�content�data�files�json�headers�cookies�auth�proxy�timeout�follow_redirects�verify�	trust_envc
��[UU7U
UUS9nURUUUUUUUUU	US98sSSS5 $!,(df   g=f)ar9Sends an HTTP request.10 11**Parameters:**12 13* **method** - HTTP method for the new `Request` object: `GET`, `OPTIONS`,14`HEAD`, `POST`, `PUT`, `PATCH`, or `DELETE`.15* **url** - URL for the new `Request` object.16* **params** - *(optional)* Query parameters to include in the URL, as a17string, dictionary, or sequence of two-tuples.18* **content** - *(optional)* Binary content to include in the body of the19request, as bytes or a byte iterator.20* **data** - *(optional)* Form data to include in the body of the request,21as a dictionary.22* **files** - *(optional)* A dictionary of upload files to include in the23body of the request.24* **json** - *(optional)* A JSON serializable object to include in the body25of the request.26* **headers** - *(optional)* Dictionary of HTTP headers to include in the27request.28* **cookies** - *(optional)* Dictionary of Cookie items to include in the29request.30* **auth** - *(optional)* An authentication class to use when sending the31request.32* **proxy** - *(optional)* A proxy URL where all the traffic should be routed.33* **timeout** - *(optional)* The timeout configuration to use when sending34the request.35* **follow_redirects** - *(optional)* Enables or disables HTTP redirects.36* **verify** - *(optional)* Either `True` to use an SSL context with the37default CA bundle, `False` to disable verification, or an instance of38`ssl.SSLContext` to use a custom context.39* **trust_env** - *(optional)* Enables or disables usage of environment40variables for configuration.41 42**Returns:** `Response`43 44Usage:45 46```47>>> import httpx48>>> response = httpx.request('GET', 'https://httpbin.org/get')49>>> response50<Response [200 OK]>51```52�r"r$r'r%r(�53�method�urlrrrr rr!r#r&N)rr)r,r-rrrrr r!r"r#r$r%r&r'r(�clients                �PD:\code\apps\devtools\python\user_packages\Python313\site-packages\httpx/_api.pyrr's`��~54������55�56��~�~����������-��57�58�59�60�s�0�61>c
#��# �[UU62U
UUS9nURUUUUUUUUU	US963nUv� SSS5 SSS5 g!,(df   N=f!,(df   g=f7f)z�64Alternative to `httpx.request()` that streams the response body65instead of loading it into memory at once.66 67**Parameters**: See `httpx.request`.68 69See also: [Streaming Responses][0]70 71[0]: /quickstart#streaming-responses72r*r+N)rr)r,r-rrrrr r!r"r#r$r%r&r'r(r.�responses                 r/rr{s����:73������74�75�
�]�]����������-��76���N�77�78�79�80�81��82�83�s/�A!�A�?�A�	A!�84A
	�	A�85A�A!�	rr!r"r#r$r&r'r%r(c	�(�[SUUUUUUUUUU	S9$)z�86Sends a `GET` request.87 88**Parameters**: See `httpx.request`.89 90Note that the `data`, `files`, `json` and `content` parameters are not available91on this function, as `GET` requests should not include a request body.92�GETr2�r�93r-rr!r"r#r$r&r'r%r(s94          r/rr�s2��*�
�����
��)������c	�(�[SUUUUUUUUUU	S9$)z�95Sends an `OPTIONS` request.96 97**Parameters**: See `httpx.request`.98 99Note that the `data`, `files`, `json` and `content` parameters are not available100on this function, as `OPTIONS` requests should not include a request body.101�OPTIONSr2r5r6s102          r/rr�s2��*������
��)�����r7c	�(�[SUUUUUUUUUU	S9$)z�103Sends a `HEAD` request.104 105**Parameters**: See `httpx.request`.106 107Note that the `data`, `files`, `json` and `content` parameters are not available108on this function, as `HEAD` requests should not include a request body.109�HEADr2r5r6s110          r/rr�s2��*������
��)�����r7�
rrrr rr!r"r#r$r&r'r%r(c
�0�[SUUUUUUUUUU	U111UUU
S9$)z?112Sends a `POST` request.113 114**Parameters**: See `httpx.request`.115�POSTr<r5�r-rrrr rr!r"r#r$r&r'r%r(s              r/rrs>��,����
��
����
��)�����r7c
�0�[SUUUUUUUUUU	U116UUU
S9$)z>117Sends a `PUT` request.118 119**Parameters**: See `httpx.request`.120�PUTr<r5r?s              r/rrCs>��,�
���
��
����
��)�����r7c
�0�[SUUUUUUUUUU	U121UUU
S9$)z@122Sends a `PATCH` request.123 124**Parameters**: See `httpx.request`.125�PATCHr<r5r?s              r/rrls>��,����
��
����
��)�����r7)	rr!r"r#r$r&r%r'r(c	�(�[SUUUUUUUUUU	S9$)z�126Sends a `DELETE` request.127 128**Parameters**: See `httpx.request`.129 130Note that the `data`, `files`, `json` and `content` parameters are not available131on this function, as `DELETE` requests should not include a request body.132�DELETEr2r5)133r-rr!r"r#r$r&r%r'r(s134          r/rr�s2��*������
��)�����r7) r,�strr-�	URL | strr�QueryParamTypes | Noner�RequestContent | Noner�RequestData | Noner�RequestFiles | Noner �typing.Any | Noner!�HeaderTypes | Noner"�CookieTypes | Noner#�AuthTypes | Noner$�ProxyTypes | Noner%rr&�boolr'�ssl.SSLContext | str | boolr(rQ�returnr) r,rFr-rGrrHrrIrrJrrKr rLr!rMr"rNr#rOr$rPr%rr&rQr'rRr(rQrSztyping.Iterator[Response])r-rGrrHr!rMr"rNr#rOr$rPr&rQr'rRr%rr(rQrSr)r-rGrrIrrJrrKr rLrrHr!rMr"rNr#rOr$rPr&rQr'rRr%rr(rQrSr)r-rGrrHr!rMr"rNr#rOr$rPr&rQr%rr'rRr(rQrSr)#�135__future__r�typing�136contextlibr�_clientr�_configr�_modelsr�_typesr	r137rrr
rrrr�_urlsr�
TYPE_CHECKING�ssl�__all__rrrrrrrrr�r7r/�<module>r`sx��"�
�%��+��138�139�140��	����141��"&*�%)�#�!%�"�"&�"&�!�#�2�"�*.��!Q142��Q143�	�Q144�
#�	Q145�146#�Q147��
Q148��Q149��Q150� �Q151� �Q152��Q153��Q154��Q155��Q156�
(�Q157� �!Q158�"�#Q159�h�160&*�%)�#�!%�"�"&�"&�!�#�2�"�*.��!/��/�	�/�
#�	/�161#�/��
/��/��/� �/� �/��/��/��/��/�
(�/� �!/�"�#/��/�j&*�"&�"&�!�#�"�*.�2��!�	�!�
#�!� �	!�162 �!��
!��!��!�
(�!��!��!��!�N&*�"&�"&�!�#�"�*.�2��!�	�!�
#�!� �	!�163 �!��
!��!��!�
(�!��!��!��!�N&*�"&�"&�!�#�"�*.�2��!�	�!�
#�!� �	!�164 �!��
!��!��!�
(�!��!��!��!�N&*�#�!%�"�%)�"&�"&�!�#�"�*.�2��&�	�&�#�&��	&�165�&��
&�
#�&� �&� �&��&��&��&�
(�&��&��&� �!&�X&*�#�!%�"�%)�"&�"&�!�#�"�*.�2��&�	�&�#�&��	&�166�&��
&�
#�&� �&� �&��&��&��&�
(�&��&��&� �!&�X&*�#�!%�"�%)�"&�"&�!�#�"�*.�2��&�	�&�#�&��	&�167�&��
&�
#�&� �&� �&��&��&��&�
(�&��&��&� �!&�X&*�"&�"&�!�#�"�2�*.��!�	�!�
#�!� �	!�168 �!��
!��!��!��!�
(�!��!��!r7
codekingpro/portable-devtools · Team Ai