mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451)
Fix misspelling in docs for http.HTTPMethod (GH-99376)
(cherry picked from commit f0d12ca0e0)
Co-authored-by: Matt Harasymczuk <github.com@haras.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
f5fa17bef5
commit
00755196e3
1 changed files with 16 additions and 7 deletions
|
|
@ -146,16 +146,25 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as
|
|||
Usage::
|
||||
|
||||
>>> from http import HTTPMethod
|
||||
>>> HTTMethod.GET
|
||||
HTTMethod.GET
|
||||
>>> HTTMethod.GET == 'GET'
|
||||
>>>
|
||||
>>> HTTPMethod.GET
|
||||
<HTTPMethod.GET>
|
||||
>>> HTTPMethod.GET == 'GET'
|
||||
True
|
||||
>>> HTTMethod.GET.value
|
||||
>>> HTTPMethod.GET.value
|
||||
'GET'
|
||||
>>> HTTMethod.GET.description
|
||||
'Transfer a current representation of the target resource.'
|
||||
>>> HTTPMethod.GET.description
|
||||
'Retrieve the target.'
|
||||
>>> list(HTTPMethod)
|
||||
[HTTPMethod.GET, HTTPMethod.HEAD, ...]
|
||||
[<HTTPMethod.CONNECT>,
|
||||
<HTTPMethod.DELETE>,
|
||||
<HTTPMethod.GET>,
|
||||
<HTTPMethod.HEAD>,
|
||||
<HTTPMethod.OPTIONS>,
|
||||
<HTTPMethod.PATCH>,
|
||||
<HTTPMethod.POST>,
|
||||
<HTTPMethod.PUT>,
|
||||
<HTTPMethod.TRACE>]
|
||||
|
||||
.. _http-methods:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue