2bi
J S SK Jr S SKJrJr SSKJr SSKJr S r
S rS rg )
)absolute_import)!MultipartInvariantViolationDefectStartBoundaryNotFoundDefect )HeaderParsingError)http_clientc U R 5 $ ! [ a Of = f U R $ ! [ a Of = f U R SL $ ! [ a Of = f[ S5 e)zd
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.)isclosedAttributeErrorclosedfp
ValueError)objs ړ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/urllib3/util/response.pyis_fp_closedr s}
||~
zz
vv~
@
AAs*
/
<<
A
AAc [ U [ R 5 ( d# [ SR [ U 5 5 5 e[
U SS5 n[
U SS5 nSnU( a9 U R 5 ( d$ U" 5 n[ U[ [ 45 ( a UnU( a/ U Vs/ s H" n[ U[ [ 45 ( a M UPM$ nnU( d U( a [ XS9egs snf )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.
z"expected httplib.Message, got {0}.defectsNget_payload)r
unparsed_data)
isinstancehttplibHTTPMessage TypeErrorformattypegetattris_multipartbytesstrr r r )headersr r r payloaddefects r assert_header_parsingr# ( s gw2233<CCDMRSSgy$/G'=$7KM ##%%!mG'E3<00 '
"
!46WX
!
- NN
s *C-
C-c t U R n[ U[ 5 ( a US:H $ UR 5 S:H $ )z
Checks whether the request of a response has been a HEAD-request.
Handles the quirks of AppEngine.
:param http.client.HTTPResponse response:
Response to check if the originating request
used 'HEAD' as a method.
HEAD)_methodr intupper)responsemethods r is_response_to_headr, ^ s7
F{<<>V## N)
__future__r email.errorsr r
exceptionsr packages.six.movesr r r r# r, r- r