AllowedMethodsTrait

trait \TYPO3\CMS\Core\Http\AllowedMethodsTrait

Table of Contents

Methods

assertAllowedHttpMethod()  : void
Assert if request method matches allowed HTTP methods and throw exception on mismatch.

Methods

assertAllowedHttpMethod()

Assert if request method matches allowed HTTP methods and throw exception on mismatch.

protected assertAllowedHttpMethod(ServerRequestInterface $request, non-empty-string ...$allowedHttpMethods) : void

Parameters

$request : ServerRequestInterface
$allowedHttpMethods : non-empty-string

Tags

throws
MethodNotAllowedException
On this page