-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
Update http.client.rst #24803
Update http.client.rst #24803
Conversation
This PR is stale because it has been open for 30 days with no activity. |
@@ -572,7 +572,7 @@ Here is an example session that uses the ``HEAD`` method. Note that the | |||
>>> data == b'' | |||
True | |||
|
|||
Here is an example session that shows how to ``POST`` requests:: | |||
Here is an example session that uses the ``POST`` method:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
|
||
>>> # This creates an HTTP message | ||
>>> # This creates an HTTP request |
There was a problem hiding this comment.
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.
Co-authored-by: Éric <merwok@netwok.org>
@maggyero Would you still be interested in addressing the comments above? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The only critical comment was reverting to message
instead of request
. but within the context, the usage of request
was fine.
Thanks @maggyero for the PR, and @orsenthil for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-97808 is a backport of this pull request to the 3.11 branch. |
* Update http.client.rst * Apply suggestions from code review Co-authored-by: Éric <merwok@netwok.org> * Update http.client.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Senthil Kumaran <senthil@python.org> (cherry picked from commit 0c91a12) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
GH-97809 is a backport of this pull request to the 3.10 branch. |
* Update http.client.rst * Apply suggestions from code review Co-authored-by: Éric <merwok@netwok.org> * Update http.client.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Senthil Kumaran <senthil@python.org> (cherry picked from commit 0c91a12) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Some of my questions were left unanswered before this was merged, but it’s not very important. For other PRs of the same style, please follow these guidelines:
Thanks! |
* Update http.client.rst * Apply suggestions from code review Co-authored-by: Éric <merwok@netwok.org> * Update http.client.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Senthil Kumaran <senthil@python.org> (cherry picked from commit 0c91a12) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* Update http.client.rst * Apply suggestions from code review Co-authored-by: Éric <merwok@netwok.org> * Update http.client.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Senthil Kumaran <senthil@python.org> (cherry picked from commit 0c91a12) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Hi @merwok , I made a note regarding your comment while reviewing it.
Didn't want to keep the PR with other changes in open for a long time since your other comments were addressed. I acknowledge your other points. Thank you. |
Good, and no worry! |
* Update http.client.rst * Apply suggestions from code review Co-authored-by: Éric <merwok@netwok.org> * Update http.client.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Senthil Kumaran <senthil@python.org> (cherry picked from commit 0c91a12) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Fix some typos in the documentation of the
http.client
standard library.