-
-
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
Add response hook #2605
Add response hook #2605
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2605 +/- ##
=========================================
+ Coverage 97.87% 97.9% +0.02%
=========================================
Files 38 38
Lines 7304 7355 +51
Branches 1263 1278 +15
=========================================
+ Hits 7149 7201 +52
+ Misses 51 50 -1
Partials 104 104
Continue to review full report at Codecov.
|
I dislike the proposal by 2 reasons:
|
It looks like solution for implementing aio-libs/aioelasticsearch#48 , requests has https://pypi.python.org/pypi/requests-aws4auth , right now it is very tricky to implement something like requests-aws4auth for aiohttp |
* Drop encoding param * Add CHANGES
Please give me a pause. I understand the need and share the intention, but maybe I can invent an alternative implementation. |
* Support .netrc by trust_env
* Avoid to create unnecessary resources (aio-libs#2586) Do not create a new resource when adding a route with the same name and path of the last added resource. * Add a test for AbstractResource().raw_match() * PrefixResource().raw_match() should always return False
…s#2611) * Add support to Flask-style decorators with class-based Views * Add versionadded 3.0 in documentation
…bs#2612) Before this commit, the TCP tunning was allowed from PayloadWriter and Response classes, this was exclusively used by just some edge cases and caused some overhead in performance and maintainability. Since now, the TCP tunning has to be done using the stream and its the responsibility of the developer set and set back the proper values.
* allow custom port to TestServer * tweaks and add CHANGES * add docs * add docs for pytest fixture unused_port * addinv versionadded:: 3.0
* Function web.run_app add param access_log_class * Docs of web.run_app add param access_log_class * Add changelog and contributor * make isort * Update docs/web_reference.rst
- retrofit BasicAuth
… into add_response_hook
Will this be merged? I need this to implement some custom auth handlers for OpenID token-exchange client Authorization and Authentication in my async client implementation. |
I understand your needs but the functionality should be implemented in a slightly different way than proposed by this PR. |
How do I implement it now? Should I use decorators? |
Now there is the inconvenient and undocumented way with passing |
OK, so i do it the messy way. Thanks |
Sorry about that. |
Are there changes in behavior for the user?
None
Related issue number
#434
Checklist
CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bug)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.