]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix misspelling in docs for http.HTTPMethod (#99376)
authorMatt Harasymczuk <github.com@haras.pl>
Sun, 13 Nov 2022 20:46:28 +0000 (21:46 +0100)
committerGitHub <noreply@github.com>
Sun, 13 Nov 2022 20:46:28 +0000 (12:46 -0800)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/http.rst

index 9d002dc33ccb8d418663f47bec6bebdc0ba9188b..5e1912716e5319fd866025c4befabd4a16498d88 100644 (file)
@@ -171,16 +171,25 @@ Property             Indicates that           Details
    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: