Skip to content
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 keep_response parameter to HttpHookAsync #1330

Merged
merged 9 commits into from
Sep 25, 2023
Merged

Conversation

Lee-W
Copy link
Contributor

@Lee-W Lee-W commented Sep 21, 2023

add keep_response parameter to HttpHookAsync to allow user to use the response after running HttpHookAsync.run

closes: #1321

@Lee-W Lee-W force-pushed the keep-aiohttp-session branch 2 times, most recently from 55ed786 to 25d7827 Compare September 21, 2023 09:58
@Lee-W Lee-W marked this pull request as ready for review September 21, 2023 10:00
@Lee-W Lee-W changed the title Keep aiohttp session add keep_response parameter to HttpHookAsync Sep 21, 2023
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (52c4db4) 98.53% compared to head (f604a54) 98.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1330      +/-   ##
==========================================
+ Coverage   98.53%   98.55%   +0.01%     
==========================================
  Files          91       91              
  Lines        5450     5456       +6     
==========================================
+ Hits         5370     5377       +7     
+ Misses         80       79       -1     
Files Changed Coverage Δ
...mer/providers/snowflake/hooks/snowflake_sql_api.py 100.00% <ø> (ø)
astronomer/providers/http/hooks/http.py 91.02% <100.00%> (+2.13%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Lee-W Lee-W force-pushed the keep-aiohttp-session branch 2 times, most recently from a7afd82 to 618f3f0 Compare September 22, 2023 08:30
Co-authored-by: Phani Kumar <94376113+phanikumv@users.noreply.github.com>
@phanikumv phanikumv merged commit 187431c into main Sep 25, 2023
11 checks passed
@phanikumv phanikumv deleted the keep-aiohttp-session branch September 25, 2023 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpAsyncHook: cannot do an await response.text() or response.json() after run: "Connection closed"
2 participants