Fix misspelling in docs for http.HTTPMethod (#99376)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Matt Harasymczuk 2022-11-13 21:46:28 +01:00 committed by GitHub
parent 88385b8564
commit f0d12ca0e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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: