options method

Future<WebDavOptions> options()

Queries the WebDAV capabilities of the server.

See:

Implementation

Future<WebDavOptions> options() async {
  final request = options_Request();

  final streamedResponse = await httpClient.send(request);
  if (streamedResponse.statusCode != 200) {
    final response = await http.Response.fromStream(streamedResponse);
    throw DynamiteStatusCodeException(response);
  }
  return parseWebDavOptions(streamedResponse.headers);
}