DAVServer/PROPPATCH.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 3 SCAR 19.5
CC
3
Cov
0%
handle
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 7.0
1  
2  
3 package HTTP::DAVServer::PROPPATCH;
4  
5 our $VERSION=0.1;
6  
7 use strict;
8 use warnings;
9  
10 =head1 NAME
11  
12 HTTP::DAVServer::PROPPATCH - Implements the PROPPATCH method
13  
14 =cut
15  
16 use File::stat qw(stat);
17  
18 sub handle {
19  
20 my ($self, $r, $url, $responder, $req) = @_;
21  
22 my $root = $HTTP::DAVServer::ROOT;
23 my $host = $HTTP::DAVServer::HOST;
24  
25  
26 my $xml .= qq(<response>\n<href>http://$host$url</href>\n<prop>\n);
27  
28 # Property names response
29 if ( exists $req->{'{DAV:}set'} ) {
30  
31 }
32  
33 if ( exists $req->{'{DAV:}remove'} ) {
34  
35 }
36  
37 $xml .= "</response>\n";
38  
39 $responder->multiStatus( $r, $xml );
40  
41 }
42  
43  
44 =head1 SUPPORT
45  
46 For technical support please email to jlawrenc@cpan.org ...
47 for faster service please include "HTTP::DAVServer" and "help" in your subject line.
48  
49 =head1 AUTHOR
50  
51 Jay J. Lawrence - jlawrenc@cpan.org
52 Infonium Inc., Canada
53 http://www.infonium.ca/
54  
55 =head1 COPYRIGHT
56  
57 Copyright (c) 2003 Jay J. Lawrence, Infonium Inc. All rights reserved.
58 This program is free software; you can redistribute
59 it and/or modify it under the same terms as Perl itself.
60  
61 The full text of the license can be found in the
62 LICENSE file included with this module.
63  
64 =head1 ACKNOWLEDGEMENTS
65  
66 Thank you to the authors of my prequisite modules. With out your help this code
67 would be much more difficult to write!
68  
69 XML::Simple - Grant McLean
70 XML::SAX - Matt Sergeant
71 DateTime - Dave Rolsky
72  
73 Also the authors of litmus, a very helpful tool indeed!
74  
75 =head1 SEE ALSO
76  
77 HTTP::DAV, HTTP::Webdav, http://www.webdav.org/, RFC 2518
78  
79 =cut
80  
81 1;
82