Add support for Extended MKCOL (RFC5689)

This commit is contained in:
Brandon Robins
2018-01-03 23:43:07 -06:00
committed by Brandon Robins
parent 46ff7a934f
commit 3b65768e40
14 changed files with 359 additions and 59 deletions

View File

@@ -0,0 +1,26 @@
# frozen_string_literal: false
module Support
module Examples
module ExtMkcol
# RFC5689: 3.4. Successful Extended MKCOL Request
def self.rfc5689_3_4
<<~XML
<?xml version="1.0" encoding="utf-8" ?>
<D:mkcol xmlns:D="DAV:"
xmlns:E="http://example.com/ns/">
<D:set>
<D:prop>
<D:resourcetype>
<D:collection/>
<E:special-resource/>
</D:resourcetype>
<D:displayname>Special Resource</D:displayname>
</D:prop>
</D:set>
</D:mkcol>
XML
end
end
end
end