NAME
Net::Async::HTTP::DAV - support for WebDAV over Net::Async::HTTP
VERSION
Version 0.001
SYNOPSIS
use
IO::Async::Loop;
use
Net::Async::HTTP;
my
$loop
= IO::Async::Loop->new;
$loop
->add(
my
$dav
= Net::Async::HTTP::DAV->new(
host
=>
'cpan.perlsite.co.uk'
,
));
$dav
->propfind(
path
=>
'/authors/id/T/TE/TEAM/'
,
on_item
=>
sub
{
my
(
$item
) =
@_
;
printf
"%-32.32s %-64.64s %12d\n"
, strftime(
"%Y-%m-%d %H:%M:%S"
,
localtime
$item
->{modified}),
$item
->{displayname},
$item
->{size};
},
)->get;
DESCRIPTION
Does some very basic WebDAV stuff.
See http://www.webdav.org/specs/rfc2518.html.
Highly experimental, no documentation, see examples/ in source distribution. API is likely to change.
METHODS
configure
Accepts configuration parameters (can also be passed to "new").
host - which host we're connecting to
path - base path for requests
user - optional username
pass - optional password, Basic auth
http - a pre-existing Net::Async::HTTP instance
http
Accessor for the internal Net::Async::HTTP instance.
ua_factory
Populates the Net::Async::HTTP instance via factory or default settings.
path
Base path for requests.
propfind
Does a propfind request.
Parameters are basically 'path' and on_item for a per-item callback.
head
Perform HEAD request on given path.
get
GET the given resource
put
Write data directly to the given resource.
INHERITED METHODS
- IO::Async::Notifier
-
add_child, adopt_future, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, notifier_name, parent, remove_child, remove_from_parent
AUTHOR
Tom Molesworth <cpan@perlsite.co.uk>
LICENSE
Copyright Tom Molesworth 2011-2014. Licensed under the same terms as Perl itself.