src/mako/error/handlers/web/traits/HandlerHelperTrait.php
protected function sendResponse(Response $response, Throwable $exception): void
	{
		if($exception instanceof MethodNotAllowedException)
		{
			$this->response->getHeaders()->add('Allow', implode(',', $exception->getAllowedMethods()));
		}

		$response->send();
	}
protected function sendResponse(Response $response, Throwable $exception): void
	{
		if($exception instanceof MethodNotAllowedException)
		{
			$this->response->getHeaders()->add('Allow', implode(',', $exception->getAllowedMethods()));
		}

		$response->send();
	}
protected function sendResponse ( Response $ response , Throwable $ exception ) : void { if ( $ exception instanceof MethodNotAllowedException ) { $ this -> response -> getHeaders ( ) -> add ( 'Allow' , implode ( ',' , $ exception -> getAllowedMethods ( ) ) ) ; } $ response -> send ( ) ; }
Sends response and adds any aditional headers.

@param \mako\http\Response $response  Response
@param \Throwable          $exception Exception
Sends response and adds any aditional headers .