8000 Update http.client.rst by geryogam · Pull Request #24803 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Update http.client.rst #24803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Éric <merwok@netwok.org>
  • Loading branch information
geryogam and merwok authored Jan 5, 2022
commit 9b79f527d8350c2222552272c19507a3b1b1274d
4 changes: 2 additions & 2 deletions Doc/library/http.client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,11 @@ Here is an example session that uses the ``POST`` method::
b'Redirecting to <a href="http://bugs.python.org/issue12524">http://bugs.python.org/issue12524</a>'
>>> conn.close()

Client side ``PUT`` HTTP requests are very similar to ``POST`` HTTP requests. The
Client side HTTP ``PUT`` requests are very similar to ``POST`` requests. The
difference lies only on the server side where HTTP servers will allow resources to
be created via ``PUT`` requests. It should be noted that custom HTTP methods
are also handled in :class:`urllib.request.Request` by setting the appropriate
method attribute. Here is an example session that uses the ``PUT`` method::
method attribute. Here is an example session that shows how to use the ``PUT`` method::

>>> # This creates an HTTP request
Copy link
Member
@merwok merwok Jan 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request is the abstract concept, but message is a type in this module, and used just below in the doc.
This line was not incorrect, I suggest reverting the change.

>>> # with the content of BODY as the enclosed representation
Expand Down
0