options method
Queries the WebDAV capabilities of the server.
See:
- http://www.webdav.org/specs/rfc4918.html#HEADER_DAV for more information.
- options_Request for the request sent by this method.
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);
}