diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 17:58:49 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 17:58:49 +0900 |
commit | 5628c38cc54aeef01f7ff7e6c4600d3baea87b87 (patch) | |
tree | 9df8501f8447af7f798f1e8e2d2f0f77dbcd7262 /README.md | |
parent | 88db491bc536d11c8dae5f20fce94f83b508063d (diff) | |
download | plum-5628c38cc54aeef01f7ff7e6c4600d3baea87b87.tar.gz |
client: make #request accept more arguments
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,8 +16,8 @@ If the server does't support HTTP/2, `Plum::Client` tries to use HTTP/1.x instea ##### Sequential request ```ruby -client = Plum::Client.start("http2.rhe.jp", 443) -res1 = client.get("/") +client = Plum::Client.start("http2.rhe.jp", 443, user_agent: "nyaan") +res1 = client.get("/", headers: { "accept" => "*/*" }) puts res1.body # => "..." res2 = client.post("/post", "data") puts res2.body # => "..." |