public function beginRequest($req, $upstream)
    {
        if (!$this->requestClass) {
            return false;
        }
        $className = $this->requestClass;
        return new $className($this, $upstream, $req);
    }