Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.samples.dav_provider_tools.FileResource.getHref

FileResource.getHref()

Convert path to a URL that can be passed to XML responses.

Byte string, UTF-8 encoded, quoted.

See http://www.webdav.org/specs/rfc4918.html#rfc.section.8.3 We are using the path-absolute option. i.e. starting with ‘/’. URI ; See section 3.2.1 of [RFC2068]