36 $this->server->on(
'method:GET', [$this,
'httpGet'], 90);
51 if (!array_key_exists(
'mount', $queryParams))
return;
56 list($currentUri) = explode(
'?', $currentUri);
58 $this->
davMount($response, $currentUri);
75 $response->
setHeader(
'Content-Type',
'application/davmount+xml');
77 echo '<?xml version="1.0"?>',
"\n";
78 echo "<dm:mount xmlns:dm=\"http://purl.org/NET/webdav/mount\">\n";
79 echo " <dm:url>", htmlspecialchars($uri, ENT_NOQUOTES,
'UTF-8'),
"</dm:url>\n";
81 $response->
setBody(ob_get_clean());
This interface represents a HTTP response.
The RequestInterface represents a HTTP request.
The baseclass for all server plugins.
setBody($body)
Updates the body resource with a new stream.
foreach($paths as $path) $request
httpGet(RequestInterface $request, ResponseInterface $response)
'beforeMethod' event handles.
initialize(DAV\Server $server)
Initializes the plugin and registers event handles.
getQueryParameters()
Returns the list of query parameters.
setStatus($status)
Sets the HTTP status code.
davMount(ResponseInterface $response, $uri)
Generates the davmount response.
This plugin provides support for RFC4709: Mounting WebDAV servers.
getAbsoluteUrl()
Returns the absolute url.
setHeader($name, $value)
Updates a HTTP header.