send static method

Future<Response> send(
  1. String url, {
  2. required XmlDocument body,
})

Implementation

static Future<http.Response> send(
  String url, {
  required XmlDocument body,
}) async {
  final response = await http.post(
    Uri.parse(url),
    body: wrapBody(body).toXmlString(),
    headers: {
      'content-type': 'text/xml',
    },
  );

  return response;
}