#http-header #xml #webdav #http #header #rfc4918

webdav-meta

Reusable types for implementing WebDAV clients and servers

1 unstable release

0.1.0 Feb 15, 2024

#15 in #webdav

MIT/Apache

36KB
552 lines

webdav-rs

Build Status REUSE Compliance Check crates.io Documentation License: MIT OR Apache-2.0

Reusable types for implementing WebDAV clients and servers based on RFC 4918.

This crate is intended to be used together with libraries that build on the general-purpose http crate.

Usage

cargo add webdav-meta --rename webdav

Implemented features

HTTP Methods

HTTP methods are currently defined as static variables, but should be moved to constants in the future.

  • PROPFIND
  • PROPPATCH
  • MKCOL
  • COPY
  • MOVE
  • LOCK
  • UNLOCK
HTTP Headers
  • DAV
  • Depth
  • Destination
  • If
  • Lock-Token
  • Overwrite
  • Timeout
XML Elements
  • activelock
  • allprop: internally implemented for Propfind
  • collection: internally implemented for ResourceType
  • depth
  • error: currently just a string
  • exclusive
  • href
  • include
  • location
  • lockentry
  • lockinfo
  • lockroot
  • lockscope
  • locktoken
  • locktype
  • multistatus
  • owner
  • prop
  • propertyupdate
  • propfind
  • propname: internally implemented for Propfind
  • propstat
  • remove
  • response
  • responsedescription
  • set
  • shared
  • status
  • timeout
  • write
DAV properties
  • creationdate
  • displayname
  • getcontentlanguage
  • getcontentlength
  • getcontenttype
  • getetag
  • getlastmodified
  • lockdiscovery
  • resourcetype
  • supportedlock

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–1MB
~17K SLoC