Post request with passing xml body

xml_data = “”
response = HTTP.headers(endpoint_headers).send(method_name, endpoint_url,xml_data)

in the above code how to pass xml body using http gem only