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