Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_httpservers.py9 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 …]
Dtest_httplib.py2 from http import client, HTTPStatus
525 self.assertTrue({'description', 'name', 'phrase', 'value'} <= set(dir(HTTPStatus(404))))
Dtest_xmlrpc.py334 self.send_response(http.HTTPStatus.OK)
/third_party/python/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 >>> HTTPStatus.OK.value
43 >>> HTTPStatus.OK.phrase
45 >>> HTTPStatus.OK.description
47 >>> list(HTTPStatus)
[all …]
/third_party/python/Lib/http/
Dserver.py109 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__.py6 class HTTPStatus(IntEnum): class
Dclient.py104 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/
D3.9.0a5.rst786 :class:`http.HTTPStatus`. Patch by Dong-hee Na.
795 Adding HTTP status 418 "I'm a Teapot" to HTTPStatus in http library. Patch
D3.5.0a1.rst1121 Added http.HTTPStatus enums (i.e. HTTPStatus.OK, HTTPStatus.NOT_FOUND).
D3.7.0a3.rst1204 :class:`http.HTTPStatus`. Patch by Vitor Pereira.
D3.8.0a1.rst2047 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/
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
D3.9.rst473 :class:`http.HTTPStatus`. (Contributed by Dong-hee Na in :issue:`39509` and Ross Rhodes in :issue:`…