diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-09 22:25:14 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-09 22:25:14 +0900 |
commit | e44ecc10fe65ae0a3b5887e1bfcbf16a9acc152f (patch) | |
tree | c90d4d0a89a4bfe9f103497193815c0e17a996d2 | |
parent | cb0f800a28dd5b6875bcdf94eff64d5f4ae066cf (diff) | |
download | plum-e44ecc10fe65ae0a3b5887e1bfcbf16a9acc152f.tar.gz |
readme: update
-rw-r--r-- | README.md | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -33,7 +33,7 @@ App = -> env { [ 200, { "Content-Type" => "text/plain" }, - [" request: #{env["REQUEST_METHOD"]} #{env["PATH_INFO"]}"] + ["request: #{env["REQUEST_METHOD"]} #{env["PATH_INFO"]}"] ] } @@ -51,6 +51,26 @@ NOTE: If `--cert` and `--key` are omitted, a temporary dummy certificate will be ### As a HTTP/2 (HTTP/1.x) client library If the server does't support HTTP/2, `Plum::Client` tries to use HTTP/1.x instead. +``` + +-----------------+ + |:http2 option | false + |(default: true) |-------> HTTP/1.x + +-----------------+ + v true + +-----------------+ + |:scheme option | "http" + |(default:"https")|-------> Try Upgrade from HTTP/1.1 + +-----------------+ + v "https" + +-----------------+ + | ALPN(/NPN) | failed + | negotiation |-------> HTTP/1.x + +-----------------+ + | "h2" + v + HTTP/2 +``` + ##### Sequential request ```ruby client = Plum::Client.start("http2.rhe.jp", 443, user_agent: "nyaan") |