mattshin opened a new issue #14906: URL: https://github.com/apache/airflow/issues/14906
**Description** I propose that the SimpleHttpOperator also take an argument like `xcom_function` or `xcom_transformation` that describes a lambda or single-variable function that takes as input the response to the http request and uses the output of the function for the xcom push. alternatively, the existing parameter xcom_push can be modified to take in both Booleans and Callables. if provided `False` or `True`, behavior is unchanged. If provided a single variable callable, the function is applied to the response. **Use case / motivation** Sometimes we want to XCom push a portion of the response, and then use that portion in a templated xcom pull, where we do not have access to things like json deserialization. Currently the best way to do this is to have a middleman task that takes the response.text xcom from the httpoperator, applies the transformation and then pushes the result. **Are you willing to submit a PR?** Yes **Related Issues** None that I could find -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org