Jelix\Routing\ClientRequest::isAllowedResponse PHP Method

isAllowedResponse() public method

public isAllowedResponse ( Jelix\Routing\ServerResponse $response ) : boolean
$response Jelix\Routing\ServerResponse the response
return boolean true if the given class is allowed for the current request
    public function isAllowedResponse($response)
    {
        return $response instanceof $this->authorizedResponseClass || ($c = get_class($response)) == 'jResponseRedirect' || $c == 'jResponseRedirectUrl';
    }