谁有一个使用nghttp2实现HTTP2服务器(在明文模式下)的例子?
发布于 2018-12-27 03:06:46
这取决于你想要如何实现它。
最简单的方法是使用nghttpd command
nghttpd --no-tls 80这是启动并运行HTTP/2服务器以测试客户端实现的最简单方法。您还可以添加-v开关以使用详细模式并记录使用的所有帧。
如果你想用C语言编写服务器,那么example in the documentation就是一个HTTPS服务器,所以这需要针对明文(h2c)进行调整。
最后,还有一个更简单的C++ implementation in the documentation。
https://stackoverflow.com/questions/53931608
复制相似问题