handleRootRequest method

Future handleRootRequest(
  1. HttpRequest request
)

Implementation

Future handleRootRequest(HttpRequest request) async {
  var urlBase = request.requestedUri.resolve("/").toString();
  var xml = device.toRootXml(urlBase: urlBase);
  request.response
    ..headers.contentType = _xmlType
    ..writeln(xml)
    ..close();
}