Skip to content

Commit 103d0d2

Browse files
committed
aded webdav page
1 parent 5fd5faf commit 103d0d2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/site/apt/webdav.apt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
------
2+
Async Http Client - Using the WebDav protocol
3+
------
4+
Jeanfrancois Arcand
5+
------
6+
2012
7+
8+
Using the WebDav protocol
9+
10+
The <<<AsyncHttpClient>>> has build in support for the WebDav protocol. The API can be used the same way normal HTTP
11+
request are made, and everything discussed in this documentation works with WebDAV as well:
12+
13+
+-----+
14+
AsyncHttpClient c = new AsyncHttpClient();
15+
Request mkcolRequest = new RequestBuilder("MKCOL").setUrl("http://host:port/folder1").build();
16+
Response response = c.executeRequest(mkcolRequest).get();
17+
+-----+
18+
19+
or
20+
21+
+-----+
22+
AsyncHttpClient c = new AsyncHttpClient();
23+
Request propFindRequest = new RequestBuilder("PROPFIND").setUrl("http://host:port).build();
24+
Response response = c.executeRequest(propFindRequest, new AsyncHandler(){...}).get();
25+
+-----+

0 commit comments

Comments
 (0)