File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -146,16 +146,25 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as
146
146
Usage::
147
147
148
148
>>> 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'
152
153
True
153
- >>> HTTMethod .GET.value
154
+ >>> HTTPMethod .GET.value
154
155
'GET'
155
- >>> HTTMethod .GET.description
156
- 'Transfer a current representation of the target resource .'
156
+ >>> HTTPMethod .GET.description
157
+ 'Retrieve the target.'
157
158
>>> 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>]
159
168
160
169
.. _http-methods :
161
170
You can’t perform that action at this time.
0 commit comments