Repository URL to install this package:
Version:
0.1.2 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
urllib3
/
util
/
__pycache__
/
response.cpython-311.pyc
|
---|
§ Õg. ã óR d dl mZ d dlmZ d dlmZmZ ddlm Z dd Z ddZddZdS )é )ÚannotationsN)Ú!MultipartInvariantViolationDefectÚStartBoundaryNotFoundDefecté )ÚHeaderParsingErrorÚobjÚobjectÚreturnÚboolc óÎ | ¦ « S # t $ r Y nw xY w | j S # t $ r Y nw xY w | j du S # t $ r Y nw xY wt d¦ « )zt Checks whether a given file-like object is closed. :param obj: The file-like object to check. Nz)Unable to determine whether fp is closed.)ÚisclosedÚAttributeErrorÚclosedÚfpÚ ValueError)r s ú</tmp/pip-target-6culloxw/lib/python/urllib3/util/response.pyÚis_fp_closedr s¨ ð ð ||~~ÐøÝð ð ð Øð øøøð àzÐøÝð ð ð Øð øøøð ð v~ÐøÝð ð ð Øð øøøõ Ð@Ñ AÔ AÐAs) #¢#§. ® ;º;¿A Á AÁAÚheadersúhttplib.HTTPMessageÚNonec óV t | t j ¦ « s t dt | ¦ « d¦ « d}| ¦ « s2| ¦ « }t |t t f¦ « r|}d | j D ¦ « }|s|rt ||¬¦ « dS )a> Asserts whether all headers have been successfully parsed. Extracts encountered errors from the result of parsing headers. Only works on Python 3. :param http.client.HTTPMessage headers: Headers to verify. :raises urllib3.exceptions.HeaderParsingError: If parsing errors are found. zexpected httplib.Message, got ú.Nc óJ g | ] }t |t t f¦ « °|!S © )Ú isinstancer r )Ú.0Údefects r ú <listcomp>z)assert_header_parsing.<locals>.<listcomp>O sD ð ð ð àÝØÕ0Õ2SÐTñ ô ðØðð ð ó )ÚdefectsÚ unparsed_data)r ÚhttplibÚHTTPMessageÚ TypeErrorÚtypeÚis_multipartÚget_payloadÚbytesÚstrr r )r r! Úpayloadr s r Úassert_header_parsingr+ ( sÓ õ gwÔ2Ñ3Ô3ð KÝÐI½¸g¹¼ÐIÐIÐIÑJÔJÐJàMð ×ÒÑ!Ô!ð $Ø×%Ò%Ñ'Ô'åg¥¥s|Ñ,Ô,ð $Ø#Mðð àoðñ ô Gð ð O-ð OÝ ¨À ÐNÑNÔNÐNðOð Or Úresponseúhttplib.HTTPResponsec ó@ | j }| ¦ « dk S )zÐ Checks whether the request of a response has been a HEAD-request. :param http.client.HTTPResponse response: Response to check if the originating request used 'HEAD' as a method. ÚHEAD)Ú_methodÚupper)r, Ú method_strs r Úis_response_to_headr3 [ s# ð Ô!JØ×ÒÑÔ Ò'Ð'r )r r r r )r r r r )r, r- r r ) Ú __future__r Úhttp.clientÚclientr" Úemail.errorsr r Ú exceptionsr r r+ r3 r r r ú<module>r9 s¢ ðØ "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð Ø WÐ WÐ WÐ WÐ WÐ WÐ WÐ Wà +Ð +Ð +Ð +Ð +Ð +ðBð Bð Bð Bð>0Oð 0Oð 0Oð 0Oðf (ð (ð (ð (ð (ð (r