diff options
author | Matt Harasymczuk <github.com@haras.pl> | 2022-11-13 20:46:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 20:46:28 (GMT) |
commit | f0d12ca0e0e31b678448b6192ebaf9720228d4fa (patch) | |
tree | c3b8e9dd91727d03faf959fc9366320a71fcd047 | |
parent | 88385b856490a5ce3c99160bde6050638f81f72e (diff) | |
download | cpython-f0d12ca0e0e31b678448b6192ebaf9720228d4fa.zip cpython-f0d12ca0e0e31b678448b6192ebaf9720228d4fa.tar.gz cpython-f0d12ca0e0e31b678448b6192ebaf9720228d4fa.tar.bz2 |
Fix misspelling in docs for http.HTTPMethod (#99376)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
-rw-r--r-- | Doc/library/http.rst | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/Doc/library/http.rst b/Doc/library/http.rst index 9d002dc..5e19127 100644 --- a/Doc/library/http.rst +++ b/Doc/library/http.rst @@ -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: |