'If xcom_push is True, response of an HTTP request will also
be pushed to an XCom.'

@apply_defaults
def __init__(self, endpoint, method='POST', data=None, headers=None, response_check=None, extra_options=None, xcom_push=False, http_conn_id='http_default', *args, **kwargs):

    super(SimpleHttpOperator, self).__init__(*args, **kwargs)
    self.http_conn_id = http_conn_id
    self.method = method
    self.endpoint = endpoint
    self.headers = (headers or {})
    self.data = (data or {})
    self.response_check = response_check
    self.extra_options = (extra_options or {})
    self.xcom_push_flag = xcom_push
