response
assert_header_parsing(headers)
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.
Source code in client/ayon_fusion/vendor/urllib3/util/response.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
is_fp_closed(obj)
Checks whether a given file-like object is closed.
:param obj: The file-like object to check.
Source code in client/ayon_fusion/vendor/urllib3/util/response.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
is_response_to_head(response)
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.
Source code in client/ayon_fusion/vendor/urllib3/util/response.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|