code: public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
      {
          // Before request
          $path = $request->getUri()->getPath();
  
          if ($this->logHttpRequestToConsole) {
              Console::log(\sprintf('%s %s', $request->getMethod(), $path), [], 'debug', [
                  'HttpServer',
                  // 'WorkerId' => App::getWorkerId(),
                  'CoId' => Co::tid()
              ]);
          }
  
          // If it is not an ajax request, then render vue index file.
          if (0 === \strpos($path, DevTool::ROUTE_PREFIX) && !$request->isAjax()) {
              $json = $request->query('json');
  
              if (null === $json) {
                  return \view(\alias('@devtool/web/dist/index.html'));
              }
          }
  
          $response = $handler->handle($request);
  
          // After request
          return $response->withAddedHeader('Swoft-DevTool-Version', '1.0.0');
      }
docs: @param \Psr\Http\Message\ServerRequestInterface|Request $request
  @param \Psr\Http\Server\RequestHandlerInterface         $handler
  
  @return \Psr\Http\Message\ResponseInterface
  @throws \Throwable