Skip to content

Commit 0075519

Browse files
miss-islingtonMatt HarasymczukJelleZijlstra
authored
[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 f0d12ca) Co-authored-by: Matt Harasymczuk <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent f5fa17b commit 0075519

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

Doc/library/http.rst

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,25 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as
146146
Usage::
147147

148148
>>> from http import HTTPMethod
149-
>>> HTTMethod.GET
150-
HTTMethod.GET
151-
>>> HTTMethod.GET == 'GET'
149+
>>>
150+
>>> HTTPMethod.GET
151+
<HTTPMethod.GET>
152+
>>> HTTPMethod.GET == 'GET'
152153
True
153-
>>> HTTMethod.GET.value
154+
>>> HTTPMethod.GET.value
154155
'GET'
155-
>>> HTTMethod.GET.description
156-
'Transfer a current representation of the target resource.'
156+
>>> HTTPMethod.GET.description
157+
'Retrieve the target.'
157158
>>> list(HTTPMethod)
158-
[HTTPMethod.GET, HTTPMethod.HEAD, ...]
159+
[<HTTPMethod.CONNECT>,
160+
<HTTPMethod.DELETE>,
161+
<HTTPMethod.GET>,
162+
<HTTPMethod.HEAD>,
163+
<HTTPMethod.OPTIONS>,
164+
<HTTPMethod.PATCH>,
165+
<HTTPMethod.POST>,
166+
<HTTPMethod.PUT>,
167+
<HTTPMethod.TRACE>]
159168

160169
.. _http-methods:
161170

0 commit comments

Comments
 (0)