-
-
Notifications
You must be signed in to change notification settings - Fork 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
Simplify the hello world example, explain request lifecycle #4329
Conversation
Simplify the hello world example in the README and doc index Add a new page to the doc (http_request_lifecycle) to explain why aiohttp's client API requires several steps for performing a request. Compare it with the "requests" library. Gives some information about the use of the ClientSession object.
README.rst
Outdated
|
||
Comming from `requests<https://requests.readthedocs.io/>`_ ? Read :ref:`why we need so many lines <http://aiohttp.readthedocs.io/en/latest/aiohttp-request-lifecycle>`. |
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.
This makes the CI fail.
CONTRIBUTORS.txt
Outdated
@@ -125,6 +125,7 @@ Igor Pavlov | |||
Ilya Chichak | |||
Ingmar Steen | |||
Ivan Larin | |||
Kevin Samuel |
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.
"K" goes after "J" in the alphabet.
Codecov Report
@@ Coverage Diff @@
## master #4329 +/- ##
==========================================
- Coverage 97.55% 97.51% -0.04%
==========================================
Files 43 43
Lines 8862 8859 -3
Branches 1389 1389
==========================================
- Hits 8645 8639 -6
- Misses 93 96 +3
Partials 124 124
Continue to review full report at Codecov.
|
I see that the coverage went down, but I didn't touched the code or unit tests. Maybe I'm doing the PR on the wrong branch? |
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.
Awesome!
I very appreciate the PR, it elaborates the idea of the client session pretty well.
One minor thing: please use double backticks for inline code examples.
aiohttp follows CPython style guide for documentation, it contains a rule for code formatting.
Coverage jittering for aiohttp worries me too. |
Thanks! |
) (cherry picked from commit 17bed45) Co-authored-by: ksamuel <[email protected]>
) (#4335) (cherry picked from commit 17bed45) Co-authored-by: ksamuel <[email protected]>
What do these changes do?
Simplify the hello world example in the README and doc index
Add a new page to the doc (http_request_lifecycle) to explain why aiohttp's client API requires several steps for performing a request. Compare it with the "requests" library. Gives some information about the use of the ClientSession object.
Are there changes in behavior for the user?
No
Related issue number
Close #4272
Checklist
CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.