https://github.com/slavone/catalyst
Basic WebDav client for Elixir
https://github.com/slavone/catalyst
elixir webdav-client
Last synced: 3 months ago
JSON representation
Basic WebDav client for Elixir
- Host: GitHub
- URL: https://github.com/slavone/catalyst
- Owner: slavone
- Created: 2017-05-25T14:19:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-03T18:50:13.000Z (over 7 years ago)
- Last Synced: 2025-10-03T12:57:51.725Z (4 months ago)
- Topics: elixir, webdav-client
- Language: Elixir
- Size: 20.5 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Catalyst
Very basic WebDav client for Elixir. Uses :hackney as http driver
## Usage
```elixir
# Start a genserver process
Catalyst.start_link host: "http://example-webdav.com", user: "some_user", password: "123"
# or, in your OTP app add Catalyst as a worker
def start(_type, _args) do
import Supervisor.Spec
webdav_conf = [host: "http://example-webdav.com", user: "some_user", password: "123"]
# or you can supply just [host: "some_host", digest: "sadsadasd="]
# explicitly supplied digest will override digest hashed from user:password
# currently supports only Basic HTTP authentication
children = [
worker(Catalyst, [webdav_conf])
]
Supervisor.start_link(children, strategy: :one_for_one)
end
```
Authentication params will be stored inside genserver process, and you a good to go.
checkout the [Docs](https://hexdocs.pm/catalyst/0.1.0/api-reference.html)
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `catalyst` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:catalyst, "~> 0.2.0"}]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/catalyst](https://hexdocs.pm/catalyst).