public function setRequestOnHandler($request)
    {
        if ($this->handlerNeedsRequest()) {
            /** @var NeedRequestInterface $handler */
            $handler = $this->getHandler();
            $handler->setRequest($request);
        }
    }
public function setRequestOnHandler($request)
    {
        if ($this->handlerNeedsRequest()) {
            /** @var NeedRequestInterface $handler */
            $handler = $this->getHandler();
            $handler->setRequest($request);
        }
    }
public function setRequestOnHandler ( $ request ) { if ( $ this -> handlerNeedsRequest ( ) ) { /** @var NeedRequestInterface $handler */ $ handler = $ this -> getHandler ( ) ; $ handler -> setRequest ( $ request ) ; } }
Set the request on the handler instance.

@param  \Swoft\Http\Message\Server\Request $request
@return void
Set the request on the handler instance .