Searched refs:HTTPStatus (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Lib/test/ |
D | test_httpservers.py | 9 from http import server, HTTPStatus 94 self.send_response(HTTPStatus.NO_CONTENT) 100 self.send_response(HTTPStatus.NO_CONTENT) 109 self.send_error(HTTPStatus.NOT_FOUND) 143 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED) 150 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED) 157 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) 164 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) 171 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED) 179 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) [all …]
|
D | test_httplib.py | 2 from http import client, HTTPStatus 525 self.assertTrue({'description', 'name', 'phrase', 'value'} <= set(dir(HTTPStatus(404))))
|
D | test_xmlrpc.py | 334 self.send_response(http.HTTPStatus.OK)
|
/third_party/python/Doc/library/ |
D | http.rst | 25 associated messages through the :class:`http.HTTPStatus` enum: 27 .. class:: HTTPStatus 36 >>> from http import HTTPStatus 37 >>> HTTPStatus.OK 38 <HTTPStatus.OK: 200> 39 >>> HTTPStatus.OK == 200 41 >>> HTTPStatus.OK.value 43 >>> HTTPStatus.OK.phrase 45 >>> HTTPStatus.OK.description 47 >>> list(HTTPStatus) [all …]
|
/third_party/python/Lib/http/ |
D | server.py | 109 from http import HTTPStatus 308 HTTPStatus.BAD_REQUEST, 315 HTTPStatus.HTTP_VERSION_NOT_SUPPORTED, 322 HTTPStatus.BAD_REQUEST, 330 HTTPStatus.BAD_REQUEST, 348 HTTPStatus.REQUEST_HEADER_FIELDS_TOO_LARGE, 354 HTTPStatus.REQUEST_HEADER_FIELDS_TOO_LARGE, 389 self.send_response_only(HTTPStatus.CONTINUE) 407 self.send_error(HTTPStatus.REQUEST_URI_TOO_LONG) 418 HTTPStatus.NOT_IMPLEMENTED, [all …]
|
D | __init__.py | 6 class HTTPStatus(IntEnum): class
|
D | client.py | 104 globals().update(http.HTTPStatus.__members__) 108 responses = {v: v.phrase for v in http.HTTPStatus.__members__.values()} 922 if code != http.HTTPStatus.OK:
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a5.rst | 786 :class:`http.HTTPStatus`. Patch by Dong-hee Na. 795 Adding HTTP status 418 "I'm a Teapot" to HTTPStatus in http library. Patch
|
D | 3.5.0a1.rst | 1121 Added http.HTTPStatus enums (i.e. HTTPStatus.OK, HTTPStatus.NOT_FOUND).
|
D | 3.7.0a3.rst | 1204 :class:`http.HTTPStatus`. Patch by Vitor Pereira.
|
D | 3.8.0a1.rst | 2047 Speed-up building enums by value, e.g. http.HTTPStatus(200). 2949 http.server ensures it reports HTTPStatus.NOT_FOUND when the local path ends
|
/third_party/python/Doc/whatsnew/ |
D | 3.5.rst | 1195 A new :class:`HTTPStatus <http.HTTPStatus>` enum that defines a set of 2438 were refactored into a common :class:`~http.HTTPStatus` enum. The values in
|
D | 3.9.rst | 473 :class:`http.HTTPStatus`. (Contributed by Dong-hee Na in :issue:`39509` and Ross Rhodes in :issue:`…
|