public function getHTTPHeaders(\Sabre\DAV\Server $server)
    {
        $methods = $server->getAllowedMethods($server->getRequestUri());

        return [
            'Allow' => strtoupper(implode(', ', $methods)),
        ];
    }
public function getHTTPHeaders(\Sabre\DAV\Server $server)
    {
        $methods = $server->getAllowedMethods($server->getRequestUri());

        return [
            'Allow' => strtoupper(implode(', ', $methods)),
        ];
    }
public function getHTTPHeaders ( \ Sabre \ DAV \ Server $ server ) { $ methods = $ server -> getAllowedMethods ( $ server -> getRequestUri ( ) ) ; return [ 'Allow' => strtoupper ( implode ( ', ' , $ methods ) ) , ] ; }
This method allows the exception to return any extra HTTP response headers.

The headers must be returned as an array.

@param \Sabre\DAV\Server $server

@return array
This method allows the exception to return any extra HTTP response headers .