From 761cb97090dd8d1da852ddee4670a500951ce1b6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 30 Nov 2014 22:54:55 +0900 Subject: [PATCH] Update README.rst --- README.rst | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/README.rst b/README.rst index 580e8e2d..bc289f59 100644 --- a/README.rst +++ b/README.rst @@ -47,8 +47,7 @@ implementation. NPN offer ``h2-14``, ``spdy/3.1`` and ``http/1.1``. - This endpoint requires TLSv1.2 and DHE or EDCHE with GCM cipher - suite for HTTP/2 connection. + This endpoint requires TLSv1.2 for HTTP/2 connection. * http://nghttp2.org/ (Upgrade / Direct) @@ -997,18 +996,14 @@ HTTP/2 server looks like this: using namespace nghttp2::asio_http2; using namespace nghttp2::asio_http2::server; - int main(int argc, char* argv[]) - { + int main(int argc, char *argv[]) { http2 server; - server.listen - ("*", 3000, - [](const std::shared_ptr& req, - const std::shared_ptr& res) - { - res->write_head(200); - res->end("hello, world"); - }); + server.listen("*", 3000, [](const std::shared_ptr &req, + const std::shared_ptr &res) { + res->write_head(200); + res->end("hello, world"); + }); } For more details, see the documentation of libnghttp2_asio.