Home
last modified time | relevance | path

Searched refs:HTTPStatus (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_httpservers.py9 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 …]
Dtest_xmlrpc.py320 self.send_response(http.HTTPStatus.OK)
/external/python/cpython3/Doc/library/
Dhttp.rst25 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/
Dserver.py108 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__.py5 class HTTPStatus(IntEnum): class
Dclient.py102 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/
D3.7.3rc1.rst437 Speed-up building enums by value, e.g. http.HTTPStatus(200).
D3.5.0a1.rst1121 Added http.HTTPStatus enums (i.e. HTTPStatus.OK, HTTPStatus.NOT_FOUND).
D3.7.0a3.rst1211 :class:`http.HTTPStatus`. Patch by Vitor Pereira.
/external/python/cpython3/Doc/whatsnew/
D3.5.rst1195 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