8000 correction and alphabetization · python/cpython@6c113fe · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 6c113fe

Browse files
committed
correction and alphabetization
1 parent 783a65c commit 6c113fe

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

Doc/library/http.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Method Enum Name Details
172172
``GET`` ``GET`` HTTP/1.1 :rfc:`7231`, Section 4.3.1
173173
``HEAD`` ``HEAD`` HTTP/1.1 :rfc:`7231`, Section 4.3.2
174174
``POST`` ``POST`` HTTP/1.1 :rfc:`7231`, Section 4.3.3
175-
``PUT`` ``DELETE`` HTTP/1.1 :rfc:`7231`, Section 4.3.4
175+
``PUT`` ``PUT`` HTTP/1.1 :rfc:`7231`, Section 4.3.4
176176
``DELETE`` ``DELETE`` HTTP/1.1 :rfc:`7231`, Section 4.3.5
177177
``CONNECT`` ``CONNECT`` HTTP/1.1 :rfc:`7231`, Section 4.3.6
178178
``OPTIONS`` ``OPTIONS`` HTTP/1.1 :rfc:`7231`, Section 4.3.7

Lib/http/__init__.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,15 @@ class HTTPMethod:
163163
def __new__(cls, value, description):
164164
obj = str.__new__(cls, value)
165165
obj._value_ = value
166-
167166
obj.description = description
168167
return obj
169168

170-
GET = 'GET', 'Transfer a current representation of the target resource.'
171-
HEAD = 'HEAD', 'Same as GET, but only transfer the status line and header section.'
172-
POST = 'POST', 'Perform resource-specific processing on the request payload.'
173-
PUT = 'PUT', 'Replace all current representations of the target resource with the request payload.'
174-
DELETE = 'DELETE', 'Remove all current representations of the target resource.'
175-
CONNECT = 'CONNECT', 'Establish a tunnel to the server identified by the target resource.'
176-
OPTIONS = 'OPTIONS', 'Describe the communication options for the target resource.'
177-
TRACE = 'TRACE', 'Perform a message loop-back test along the path to the target resource.'
178-
PATCH = 'PATCH', 'Apply partial modifications to a resource.'
169+
CONNECT = 'CONNECT', 'Establish a connection to the server.'
170+
DELETE = 'DELETE', 'Remove the target.'
171+
GET = 'GET', 'Retrieve the target.'
172+
HEAD = 'HEAD', 'Same as GET, but only retrieve the status line and header section.'
173+
OPTIONS = 'OPTIONS', 'Describe the communication options for the target.'
174+
PATCH = 'PATCH', 'Apply partial modifications to a target.'
175+
POST = 'POST', 'Perform target-specific processing with the request payload.'
176+
PUT = 'PUT', 'Replace the target with the request payload.'
177+
TRACE = 'TRACE', 'Perform a message loop-back test along the path to the target.'

0 commit comments

Comments
 (0)
0