PHPDaemon\HTTPRequest\Generic::preinit PHP Метод

preinit() защищенный Метод

Preparing before init
protected preinit ( object $req ) : void
$req object Source request
Результат void
    protected function preinit($req)
    {
        if ($req === null) {
            $req = new \stdClass();
            $req->attrs = new \stdClass();
            $req->attrs->inputDone = true;
            $req->attrs->paramsDone = true;
            $req->attrs->chunked = false;
        }
        $this->attrs = $req->attrs;
        if ($this->upstream->pool->config->expose->value) {
            $this->header('X-Powered-By: phpDaemon/' . Daemon::$version);
        }
        $this->attrs->input->setRequest($this);
        $this->parseParams();
    }