Net::Async::HTTP::DAV - support for WebDAV over Net::Async::HTTP
Version 0.001
use IO::Async::Loop; use Net::Async::HTTP; use Net::Async::HTTP::DAV; use POSIX qw(strftime); 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;
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.
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
Accessor for the internal Net::Async::HTTP instance.
Populates the Net::Async::HTTP instance via factory or default settings.
Base path for requests.
Does a propfind request.
Parameters are basically 'path' and on_item for a per-item callback.
Perform HEAD request on given path.
GET the given resource
Write data directly to the given resource.
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
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2011-2014. Licensed under the same terms as Perl itself.
To install Net::Async::HTTP::DAV, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::HTTP::DAV
CPAN shell
perl -MCPAN -e shell install Net::Async::HTTP::DAV
For more information on module installation, please visit the detailed CPAN module installation guide.