ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
MethodNotAllowed.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAV\Exception
;
4
5
use
Sabre\DAV
;
6
16
class
MethodNotAllowed
extends
DAV\Exception
{
17
23
function
getHTTPCode
() {
24
25
return
405;
26
27
}
28
37
function
getHTTPHeaders
(\
Sabre
\DAV\
Server
$server
) {
38
39
$methods = $server->getAllowedMethods($server->getRequestUri());
40
41
return
[
42
'Allow'
=> strtoupper(implode(
', '
, $methods)),
43
];
44
45
}
46
47
}
Sabre\DAV
Sabre\DAV\Exception\MethodNotAllowed\getHTTPHeaders
getHTTPHeaders(\Sabre\DAV\Server $server)
This method allows the exception to return any extra HTTP response headers.
Definition:
MethodNotAllowed.php:37
Sabre
$server
$server
Definition:
sabredav.php:48
Sabre\DAV\Exception
Main Exception class.
Definition:
Exception.php:18
Sabre\DAV\Exception\MethodNotAllowed\getHTTPCode
getHTTPCode()
Returns the HTTP statuscode for this exception.
Definition:
MethodNotAllowed.php:23
Sabre\DAV\Server
Main DAV server class.
Definition:
Server.php:23
Sabre\DAV\Exception\MethodNotAllowed
MethodNotAllowed.
Definition:
MethodNotAllowed.php:16
php
Sabre\DAV\Exception
Definition:
BadRequest.php:3
libs
composer
vendor
sabre
dav
lib
DAV
Exception
MethodNotAllowed.php
Generated on Thu Jan 30 2025 19:01:27 for ILIAS by
1.8.13 (using
Doxyfile
)