Http\Server

    • 需要依赖nghttp2库,后编译安装
    • 使用HTTP2不一定要开启SSL

    nginx+swoole配置

    通过读取$request->header['x-real-ip']来获取客户端的真实