Latest | 0.0.1 |
---|---|
Homepage | https://github.com/AFNetworking/AFWebDAVManager |
License | MIT |
Platforms | ios 6.0, osx 10.8, requires ARC |
Dependencies | AFNetworking, Ono |
Authors |
AFWebDAVManager
is an AFHTTPRequestOperationManager
subclass for interacting with WebDAV servers.
Caution: This code is still in its early stages of development, so exercise caution when incorporating this into production code.
Example Usage
AFWebDAVManager *webDAVManager = [[AFWebDAVManager alloc] initWithBaseURL:[NSURL URLWithString:@"http://example.com"]];
webDAVManager.credential = [NSURLCredential credentialWithUser:@"username"
password:@"Pa55word"
persistence:NSURLCredentialPersistenceForSession];
[webDAVManager createFileAtURLString:@"/path/to/file.txt"
withIntermediateDirectories:YES
contents:[@"Hello, World" dataUsingEncoding:NSUTF8StringEncoding]
completionHandler:^(NSURL *fileURL, NSError *error)
{
if (error) {
NSLog(@"[Error] %@", error);
} else {
NSLog(@"File created: %@", fileURL);
}
}];
[webDAVManager contentsOfDirectoryAtURLString:@"/path"
recursive:NO
completionHandler:^(NSArray *items, NSError *error)
{
if (error) {
NSLog(@"[Error] %@", error);
} else {
NSLog(@"Items: %@", items);
}
}];
Contact
Mattt Thompson
License
AFWebDAVManager is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "AFWebDAVManager", "version": "0.0.1", "summary": "AFNetworking extension for WebDAV", "homepage": "https://github.com/AFNetworking/AFWebDAVManager", "social_media_url": "https://twitter.com/AFNetworking", "license": "MIT", "authors": { "Mattt Thompson": "[email protected]" }, "source": { "git": "https://github.com/AFNetworking/AFWebDAVManager.git", "tag": "0.0.1" }, "source_files": "AFWebDAVManager", "requires_arc": true, "platforms": { "ios": "6.0", "osx": "10.8" }, "dependencies": { "AFNetworking": [ "~> 2.4" ], "Ono": [ "~> 1.1" ] } }
Mon, 29 Feb 2016 07:11:04 +0000