public function dispatch(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
        {
            reset($this->middleware);
            $this->response = $response;
            return $this->handle($request);
        }
public function dispatch(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
        {
            reset($this->middleware);
            $this->response = $response;
            return $this->handle($request);
        }
public function dispatch ( ServerRequestInterface $ request , ResponseInterface $ response ) : ResponseInterface { reset ( $ this -> middleware ) ; $ this -> response = $ response ; return $ this -> handle ( $ request ) ; }
Dispatch the middleware queue.

@param ServerRequestInterface $request
@param ResponseInterface $response
Dispatch the middleware queue .