{"id":32998256,"url":"https://github.com/FriesI23/simple_webdav_client","last_synced_at":"2025-11-18T07:01:30.370Z","repository":{"id":255658628,"uuid":"844482317","full_name":"FriesI23/simple_webdav_client","owner":"FriesI23","description":"WebDAV client written in Dart, with full RFC4918 support.","archived":false,"fork":false,"pushed_at":"2025-03-05T07:53:47.000Z","size":246,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T23:02:20.889Z","etag":null,"topics":["dart-package","webdav-client"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/simple_webdav_client","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FriesI23.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T10:58:59.000Z","updated_at":"2025-09-20T06:12:14.000Z","dependencies_parsed_at":"2024-09-06T15:52:01.719Z","dependency_job_id":"217b8508-6bac-408e-9256-a8ea25d5bb5c","html_url":"https://github.com/FriesI23/simple_webdav_client","commit_stats":null,"previous_names":["friesi23/simple_webdav_client"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/FriesI23/simple_webdav_client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriesI23%2Fsimple_webdav_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriesI23%2Fsimple_webdav_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriesI23%2Fsimple_webdav_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriesI23%2Fsimple_webdav_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriesI23","download_url":"https://codeload.github.com/FriesI23/simple_webdav_client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriesI23%2Fsimple_webdav_client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285020583,"owners_count":27101228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-18T02:00:05.759Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart-package","webdav-client"],"created_at":"2025-11-13T13:00:23.111Z","updated_at":"2025-11-18T07:01:30.365Z","avatar_url":"https://github.com/FriesI23.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/d49cb87qgww"],"categories":["Libraries"],"sub_categories":["JavaScript and Dart"],"readme":"# Simple WebDAV Client\n\n![Package][pubdev-package]\n![Likes][pubdev-likes]\n![Popularity][pubdev-popularity]\n![Points][pubdev-points]\n\n`simple_webdav_client` is a Dart WebDAV client with full RFC 4918 support,\nincluding file operations (PUT/GET/CREATE/DELETE/MKCOL/MOVE/COPY),\nproperty management (PROPFIND/PROPUPDATE), and locking (LOCK/UNLOCK).\nIdeal for these needing complete WebDAV functionality.\n\nClient's API invocation style is similar to `HttpClient` and works more easily with async programming.\nrefer to [here](./example/main.dart) for more examples.\n\n## Features\n\nFollowing methods have been implemented:\n\n- [x] [PROPFIND](#propfind)\n- [x] [PROPPATCH](#proppatch)\n- [x] [MKCOL](#mkcolput)\n- [x] [GET](#getheadpost)\n- [x] [HEAD](#getheadpost)\n- [x] [POST](#getheadpost)\n- [x] [DELETE](#delete)\n- [x] [PUT](#mkcolput)\n- [x] [COPY](#copy)\n- [x] [MOVE](#move)\n- [x] [LOCK](#lock)\n- [x] [UNLOCK](#unlock)\n\n### Propfind\n\nUsed to retrieve properties defined on the resource identified by the Request-URI.\nsee [RFC4918#9.1](https://datatracker.ietf.org/doc/html/rfc4918#section-9.1) for more information.\n\nYou can make a direct request or use the dispatcher's API to make a request\n(following related sections will not be repeated).\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    // Use [PropfindPropRequestParam] to specify the properties to be requested,\n    // [PropfindAllRequestParam] to retrieve as many live properties as possible,\n    // and [PropfindNameRequestParam] to retrieve all property names.\n    param: PropfindPropRequestParam(...),\n);\n// api\nclient.dispatch(url).findProps(...);\nclient.dispatch(url).findAllProps(...);\nclient.dispatch(url).findPropNames(...);\n```\n\n### Proppatch\n\nUsed to set and/or remove properties defined on the resource identified by the request-URI.\nsee [RFC4918#9.2](https://datatracker.ietf.org/doc/html/rfc4918#section-9.2) for more information.\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    param: ProppatchRequestParam(...),\n);\n// api\nclient.dispatch(url).updateProps(...);\n```\n\n### Mkcol/Put\n\nCreates new (collection) resource at the location specified by the Request-URI.\nsee [RFC4918#9.3 - MKCOL](https://datatracker.ietf.org/doc/html/rfc4918#section-9.3) and\n[RFC4918#9.7 - PUT](https://datatracker.ietf.org/doc/html/rfc4918#section-9.7)\nfor more information.\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    // mkcol: MkcolRequestParam\n    // put: PutRequestParam\n    param: MkcolRequestParam(...),\n);\n// api\nclient.dispatch(url).create(...);\nclient.dispatch(url).createDir(...);\n```\n\n### Get/Head/Post\n\nSame as the HTTP methods defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231).\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    // get: GetRequestParam\n    // head: HeadRequestParam\n    // post: PostRequestParam\n    param: GetRequestParam(...),\n);\n// api: get\nclient.dispatch(url).get(...);\n```\n\n### Delete\n\nDeletes resource identified by the Request-URI.\nsee [RFC4918#9.6](https://datatracker.ietf.org/doc/html/rfc4918#section-9.6) for more information.\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    param: DeleteRequestParam(...),\n);\n// api\nclient.dispatch(url).delete(...);\nclient.dispatch(url).deleteDir(...);\n```\n\n### Copy\n\nCreate a copy of the source resource.\nsee [RFC4918#9.8](https://datatracker.ietf.org/doc/html/rfc4918#section-9.8) for more information.\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    param: CopyRequestParam(...),\n);\n// api\nclient.dispatch(url).copy(...);\nclient.dispatch(url).copyDir(...);\n```\n\n### Move\n\nMove a resource to a new location.\nsee [RFC4918#9.9](https://datatracker.ietf.org/doc/html/rfc4918#section-9.9) for more information.\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    param: MoveRequestParam(...),\n);\n// api\nclient.dispatch(url).move(...);\nclient.dispatch(url).moveDir(...);\n```\n\n### Lock\n\nUsed to Request lock on a resource.\nsee [RFC4918#9.10](https://datatracker.ietf.org/doc/html/rfc4918#section-9.10) for more information.\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    param: LockRequestParam(...),\n);\n// api\nclient.dispatch(url).createLock(...);\nclient.dispatch(url).createDirLock(...);\nclient.dispatch(url).renewLock(...);\n```\n\n### Unlock\n\nRemoves the lock identified by the token in Lock-Token.\nsee [RFC4918#9.11](https://datatracker.ietf.org/doc/html/rfc4918#section-9.11) for more information.\n\n```dart\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    param: UnlockRequestParam(...),\n);\n// api\nclient.dispatch(url).unlock(...);\n```\n\n## Usage\n\nCheck test cases in dir:[intergration_test/methods_test](./test/intergration_test/methods_test/)\nand [example/main.dart](./example/main.dart) for more examples.\n\n### 1. Example - full request\n\n```dart\nWebDavClient.std().dispatch(newFilePath)\n    .findAllProps(includes: [PropfindRequestProp('author', 'CUSTOM:')])\n    .then((request) =\u003e request.close())\n    .then((response) =\u003e response.parse())\n    .then((result) =\u003e print(result?.toDebugString()));\n```\n\n### 2. Example - request with custom parser\n\n```dart\nBaseRespResultParser generateParser() {\n  final propParsers = Map.of(kStdPropParserManager);\n  propParsers[(name: \"author\", ns: \"CUSTOM:\")] = const StringPropParser();\n\n  final propstatParser = BasePropstatElementParser(\n      parserManger: WebDavResposneDataParserManger(parsers: propParsers),\n      statusParser: const BaseHttpStatusElementParser(),\n      errorParser: const BaseErrorElementParser());\n  final responseParser = BaseResponseElementParser(\n      hrefParser: const BaseHrefElementParser(),\n      statusParser: const BaseHttpStatusElementParser(),\n      propstatParser: propstatParser,\n      errorParser: const BaseErrorElementParser(),\n      locationParser: const BaseHrefElementParser());\n  final multistatParser =\n      BaseMultistatusElementParser(responseParser: responseParser);\n\n  final parsers = Map.of(kStdElementParserManager);\n  parsers[(name: WebDavElementNames.multistatus, ns: kDavNamespaceUrlStr)] =\n      multistatParser;\n\n  return BaseRespResultParser(\n      singleResDecoder: kStdResponseResultParser.singleResDecoder,\n      multiResDecoder: BaseRespMultiResultParser(\n          parserManger: WebDavResposneDataParserManger(parsers: parsers)));\n}\n\nfinal parser = generateParser();\n\n// openUrl\nclient.openUrl(\n    method: WebDavMethod.propfind,\n    url: url,\n    param: ...,\n    responseResultParser: parser\n);\n// dispatch\nWebDavClient.std().dispatch(newFilePath, responseResultParser: parser);\n```\n\n## Donate\n\n[![\"Buy Me A Coffee\"][buymeacoffee-badge]](https://www.buymeacoffee.com/d49cb87qgww)\n[![Alipay][alipay-badge]][alipay-addr]\n[![WechatPay][wechat-badge]][wechat-addr]\n\n[![ETH][eth-badge]][eth-addr]\n[![BTC][btc-badge]][btc-addr]\n\n## License\n\n```text\nMIT License\n\nCopyright (c) 2024 Fries_I23\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n[pubdev-package]: https://img.shields.io/pub/v/simple_webdav_client.svg\n[pubdev-likes]: https://img.shields.io/pub/likes/simple_webdav_client?logo=dart\n[pubdev-popularity]: https://img.shields.io/pub/popularity/simple_webdav_client?logo=dart\n[pubdev-points]: https://img.shields.io/pub/points/simple_webdav_client?logo=dart\n[buymeacoffee-badge]: https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black\n[alipay-badge]: https://img.shields.io/badge/alipay-00A1E9?style=for-the-badge\u0026logo=alipay\u0026logoColor=white\n[alipay-addr]: https://raw.githubusercontent.com/FriesI23/mhabit/main/docs/README/images/donate-alipay.jpg\n[wechat-badge]: https://img.shields.io/badge/WeChat-07C160?style=for-the-badge\u0026logo=wechat\u0026logoColor=white\n[wechat-addr]: https://raw.githubusercontent.com/FriesI23/mhabit/main/docs/README/images/donate-wechatpay.png\n[eth-badge]: https://img.shields.io/badge/Ethereum-3C3C3D?style=for-the-badge\u0026logo=Ethereum\u0026logoColor=white\n[eth-addr]: https://etherscan.io/address/0x35FC877Ef0234FbeABc51ad7fC64D9c1bE161f8F\n[btc-badge]: https://img.shields.io/badge/Bitcoin-000000?style=for-the-badge\u0026logo=bitcoin\u0026logoColor=white\n[btc-addr]: https://blockchair.com/bitcoin/address/bc1qz2vjews2fcscmvmcm5ctv47mj6236x9p26zk49\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFriesI23%2Fsimple_webdav_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFriesI23%2Fsimple_webdav_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFriesI23%2Fsimple_webdav_client/lists"}