Davy.Plug (davy v0.3.1)

Copy Markdown View Source

Plug implementation for a WebDAV server.

Mount this plug in your router and provide a backend module implementing Davy.Backend:

forward "/dav", Davy.Plug, backend: MyApp.DavBackend

Options

  • :backend (required) — module implementing Davy.Backend
  • :lock_store — module implementing Davy.LockStore (default: Davy.LockStore.ETS)
  • :lock_timeout — default lock timeout in seconds (default: 1800)
  • :allow_infinity_depth — allow Depth: infinity on PROPFIND (default: false)
  • :max_buffered_put_bytes — cap on PUT bodies when the backend does not implement put_content_stream/4. Bodies larger than this return 413 Request Entity Too Large. Has no effect when the backend implements the streaming callback. (default: 16 MiB)