| ## Capabilities |
| |
| This service can be used to: |
| |
| - [x] create_dir |
| - [x] stat |
| - [x] read |
| - [x] write |
| - [x] delete |
| - [x] list |
| - [x] copy |
| - [x] rename |
| - [ ] ~~presign~~ |
| |
| ## Notes |
| |
| Bazel Remote Caching and Ccache HTTP Storage is also part of this service. |
| Users can use `webdav` to connect those services. |
| |
| ## Configuration |
| |
| - `endpoint`: set the endpoint for webdav |
| - `root`: Set the work directory for backend |
| |
| You can refer to [`WebdavBuilder`]'s docs for more information |
| |
| ## Example |
| |
| ### Via Builder |
| |
| ```rust,no_run |
| use anyhow::Result; |
| use opendal_service_webdav::Webdav; |
| use opendal_core::Operator; |
| |
| #[tokio::main] |
| async fn main() -> Result<()> { |
| // create backend builder |
| let mut builder = Webdav::default() |
| .endpoint("127.0.0.1") |
| .username("xxx") |
| .password("xxx"); |
| |
| let op: Operator = Operator::new(builder)?.finish(); |
| |
| Ok(()) |
| } |
| ``` |