Skip to content

Commit f0d12ca

Browse files
Matt HarasymczukJelleZijlstra
Matt Harasymczuk
andauthored
Fix misspelling in docs for http.HTTPMethod (#99376)
Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 88385b8 commit f0d12ca

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
@@ -171,16 +171,25 @@ Property Indicates that Details
171171
Usage::
172172

173173
>>> from http import HTTPMethod
174-
>>> HTTMethod.GET
175-
HTTMethod.GET
176-
>>> HTTMethod.GET == 'GET'
174+
>>>
175+
>>> HTTPMethod.GET
176+
<HTTPMethod.GET>
177+
>>> HTTPMethod.GET == 'GET'
177178
True
178-
>>> HTTMethod.GET.value
179+
>>> HTTPMethod.GET.value
179180
'GET'
180-
>>> HTTMethod.GET.description
181-
'Transfer a current representation of the target resource.'
181+
>>> HTTPMethod.GET.description
182+
'Retrieve the target.'
182183
>>> list(HTTPMethod)
183-
[HTTPMethod.GET, HTTPMethod.HEAD, ...]
184+
[<HTTPMethod.CONNECT>,
185+
<HTTPMethod.DELETE>,
186+
<HTTPMethod.GET>,
187+
<HTTPMethod.HEAD>,
188+
<HTTPMethod.OPTIONS>,
189+
<HTTPMethod.PATCH>,
190+
<HTTPMethod.POST>,
191+
<HTTPMethod.PUT>,
192+
<HTTPMethod.TRACE>]
184193

185194
.. _http-methods:
186195

0 commit comments

Comments
 (0)