roothybrid7/xhrdavclient — Issue #22: 複数WebDAVサイト対応
Author: roothybrid7
Created: 2011-10-15 19:29:10+00:00
State: open
Labels: webapi

# 複数のWebDAVルートでリクエストが投げれるようにする

```javascript
# default(location アプリと同じドメイン)
xhrdav.lib.DavFs.getInstance().getRequest().read([... snip ...]);
# share(他のサイト)
xhrdav.lib.DavFs.getInstance().addConnection('share', {sheme: 'https', domain: 'another.com', port:443});
xhrdav.lib.DavFs.getInstance().getRequest('share').upload([... snip ...]);
# 設定の確認
xhrdav.lib.DavFs.getInstance().getConnection('share');
# 設定の更新
xhrdav.lib.DavFs.getInstance().updateConnection('share', {sheme: 'https', domain: 'another.com', port:443});
```