Searched refs:HTTPStatus (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_httpservers.py | 9 from http import server, HTTPStatus 90 self.send_response(HTTPStatus.NO_CONTENT) 96 self.send_response(HTTPStatus.NO_CONTENT) 105 self.send_error(HTTPStatus.NOT_FOUND) 139 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED) 146 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED) 153 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) 160 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) 167 self.assertEqual(res.status, HTTPStatus.NOT_IMPLEMENTED) 175 self.assertEqual(res.status, HTTPStatus.BAD_REQUEST) [all …]
|
D | test_xmlrpc.py | 320 self.send_response(http.HTTPStatus.OK)
|
/external/python/cpython3/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 >>> http.HTTPStatus.OK.value 43 >>> HTTPStatus.OK.phrase 45 >>> HTTPStatus.OK.description 47 >>> list(HTTPStatus) [all …]
|
/external/python/cpython3/Lib/http/ |
D | server.py | 108 from http import HTTPStatus 307 HTTPStatus.BAD_REQUEST, 314 HTTPStatus.HTTP_VERSION_NOT_SUPPORTED, 321 HTTPStatus.BAD_REQUEST, 329 HTTPStatus.BAD_REQUEST, 340 HTTPStatus.REQUEST_HEADER_FIELDS_TOO_LARGE, 346 HTTPStatus.REQUEST_HEADER_FIELDS_TOO_LARGE, 381 self.send_response_only(HTTPStatus.CONTINUE) 399 self.send_error(HTTPStatus.REQUEST_URI_TOO_LONG) 410 HTTPStatus.NOT_IMPLEMENTED, [all …]
|
D | __init__.py | 5 class HTTPStatus(IntEnum): class
|
D | client.py | 102 globals().update(http.HTTPStatus.__members__) 106 responses = {v: v.phrase for v in http.HTTPStatus.__members__.values()} 908 if code != http.HTTPStatus.OK:
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.3rc1.rst | 437 Speed-up building enums by value, e.g. http.HTTPStatus(200).
|
D | 3.5.0a1.rst | 1121 Added http.HTTPStatus enums (i.e. HTTPStatus.OK, HTTPStatus.NOT_FOUND).
|
D | 3.7.0a3.rst | 1211 :class:`http.HTTPStatus`. Patch by Vitor Pereira.
|
/external/python/cpython3/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
|