PHPDaemon\HTTPRequest\Generic::checkIfReady PHP Méthode

checkIfReady() public méthode

Called to check if Request is ready
public checkIfReady ( ) : boolean
Résultat boolean Ready?
    public function checkIfReady()
    {
        if (!$this->attrs->paramsDone || !$this->attrs->inputDone) {
            return false;
        }
        if (isset($this->appInstance->passphrase)) {
            if (!isset($this->attrs->server['PASSPHRASE']) || $this->appInstance->passphrase !== $this->attrs->server['PASSPHRASE']) {
                $this->finish();
            }
            return false;
        }
        if ($this->attrs->input->isFrozen()) {
            return false;
        }
        if ($this->sleepTime === 0) {
            $this->wakeup();
        }
        return true;
    }