@@ -61,7 +61,7 @@ The module provides the following classes:
61
61
62
62
.. versionchanged :: 3.4
63
63
The *strict * parameter was removed. HTTP 0.9-style "Simple Responses" are
64
- not longer supported.
64
+ no longer supported.
65
65
66
66
.. versionchanged :: 3.7
67
67
*blocksize * parameter was added.
@@ -474,7 +474,7 @@ statement.
474
474
475
475
Return the value of the header *name *, or *default * if there is no header
476
476
matching *name *. If there is more than one header with the name *name *,
477
- return all of the values joined by ', '. If ' default' is any iterable other
477
+ return all of the values joined by ', '. If * default * is any iterable other
478
478
than a single string, its elements are similarly returned joined by commas.
479
479
480
480
.. method :: HTTPResponse.getheaders()
@@ -578,7 +578,7 @@ Here is an example session that uses the ``HEAD`` method. Note that the
578
578
>>> data == b''
579
579
True
580
580
581
- Here is an example session that shows how to ``POST `` requests ::
581
+ Here is an example session that uses the ``POST `` method ::
582
582
583
583
>>> import http.client, urllib.parse
584
584
>>> params = urllib.parse.urlencode({'@number': 12524, '@type': 'issue', '@action': 'show'})
@@ -594,14 +594,13 @@ Here is an example session that shows how to ``POST`` requests::
594
594
b'Redirecting to <a href="https://bugs.python.org/issue12524">https://bugs.python.org/issue12524</a>'
595
595
>>> conn.close()
596
596
597
- Client side `` HTTP PUT `` requests are very similar to ``POST `` requests. The
598
- difference lies only the server side where HTTP server will allow resources to
599
- be created via ``PUT `` request . It should be noted that custom HTTP methods
597
+ Client side HTTP `` PUT `` requests are very similar to ``POST `` requests. The
598
+ difference lies only on the server side where HTTP servers will allow resources to
599
+ be created via ``PUT `` requests . It should be noted that custom HTTP methods
600
600
are also handled in :class: `urllib.request.Request ` by setting the appropriate
601
- method attribute. Here is an example session that shows how to send a ``PUT ``
602
- request using http.client::
601
+ method attribute. Here is an example session that uses the ``PUT `` method::
603
602
604
- >>> # This creates an HTTP message
603
+ >>> # This creates an HTTP request
605
604
>>> # with the content of BODY as the enclosed representation
606
605
>>> # for the resource http://localhost:8080/file
607
606
...
0 commit comments