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();
}