forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow default requests parameters like proxy to be defined in extra o…
…ptions field of a Airflow HTTP Connection (apache#36733) * refactor: Pop non-header related parameters from the Connection extra_options which are used by the SimpleHttpOperator to avoid a InvalidHeader exception while instantiating the requests Session * refactor: Forgot to assign non-header related parameters to pop to the instantiated request Session as default value * refactor: Also use the extra options from connections when using an AsyncHttpHook * docs: Updated the HTTP Connection documentation concerning the optional Extra field * refactor: Fixed static checks on test http module * refactor: Also allow the definition of timeout as a request parameter in extra_options and added async test for AsyncHttpOperator * refactor: Fixed some formatting to make static checks happy * refactor: Removed indentation from Extras section * refactor: Refactored different tests for the process_extra_options_from_connection into one test as suggested by aritra24 * refactor: Fixed formatting of get_airflow_connection_with_extra * refactor: Moved import of Connection under type check * refactor: Reformatted http hook --------- Co-authored-by: David Blain <[email protected]>
- Loading branch information
1 parent
8e6bfc2
commit c2d02b4
Showing
3 changed files
with
181 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters