convert method

  1. @override
Future<WebDavMultistatus> convert(
  1. StreamedResponse input
)
override

Converts input and returns the result of the conversion.

Implementation

@override
Future<WebDavMultistatus> convert(http.StreamedResponse input) async {
  final encoding = encodingForHeaders(input.headers);

  final xml = await input.stream.bytesToXml(encoding);
  return WebDavMultistatus.fromXmlElement(xml!);
}