File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
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
+ +-----+
You can’t perform that action at this time.
0 commit comments