spdylay - C语言的SPDY开发包


MIT
跨平台
C/C++

软件简介

spdylay 是 C 语言实现对 SPDY v2/3 协议支持的库

示例代码:

#include <iostream>

#include "spdy.h"

int main()
{
  spdy server;
  if(!server.listen("localhost", 8080, "server.key", "server.crt",
                    [](request& req, response& res) {
                      res.set_status(200);
                      res.set_header("content-type", "text/plain");
                      res.end("C++ FTW\n");
                    }))
    return EXIT_FAILURE;

  std::cout << "Server running at http://localhost:8080/" << std::endl;
  return reactor::run(server);
}