src/Leevel/Protocol/HttpServer.php
public function onRequest(SwooleHttpRequest $swooleRequest, SwooleHttpResponse $swooleResponse): void
    {
        // 请求过滤 favicon
        if ('/favicon.ico' === $swooleRequest->server['path_info'] ||
            '/favicon.ico' === $swooleRequest->server['request_uri']) {
            $swooleResponse->end(' ');

            return;
        }

        $request = $this->normalizeRequest($swooleRequest);
        $response = $this->dispatchRouter($request);

        $swooleResponse = $this->normalizeResponse($response, $swooleResponse);
        $swooleResponse->end();
    }
public function onRequest(SwooleHttpRequest $swooleRequest, SwooleHttpResponse $swooleResponse): void
    {
        // 请求过滤 favicon
        if ('/favicon.ico' === $swooleRequest->server['path_info'] ||
            '/favicon.ico' === $swooleRequest->server['request_uri']) {
            $swooleResponse->end(' ');

            return;
        }

        $request = $this->normalizeRequest($swooleRequest);
        $response = $this->dispatchRouter($request);

        $swooleResponse = $this->normalizeResponse($response, $swooleResponse);
        $swooleResponse->end();
    }
处理 http 请求
浏览器连接服务器后, 页面上的每个请求均会执行一次
nginx 反向代理每次打开链接页面默认都是接收两个请求, 一个是正常的数据请求, 一个 favicon.ico 的请求
可以通过 nginx deny 屏蔽掉 favicon.ico 的请求，具体请 Google 或者百度.

@param \Swoole\Http\Request  $swooleRequest
@param \Swoole\Http\Response $swooleResponse