public function onInheritanceFromRequest($req)
    {
        $this->state = self::STATE_HEADERS;
        $this->addr = $req->attrs->server['REMOTE_ADDR'];
        $this->server = $req->attrs->server;
        $this->get = $req->attrs->get;
        $this->prependInput("\r\n");
        $this->onRead();
    }