public function beginRequest($req, $upstream)
    {
        if (!$this->requestClass) {
            return false;
        }
        $className = $this->requestClass;
        return new $className($this, $upstream, $req);
    }
public function beginRequest($req, $upstream)
    {
        if (!$this->requestClass) {
            return false;
        }
        $className = $this->requestClass;
        return new $className($this, $upstream, $req);
    }
public function beginRequest ( $ req , $ upstream ) { if ( ! $ this -> requestClass ) { return false ; } $ className = $ this -> requestClass ; return new $ className ( $ this , $ upstream , $ req ) ; }
Create Request instance
@param  object $req Generic
@param  object $upstream Upstream application instance
@return object Request
Create Request instance