aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-11-08 17:58:49 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-11-08 17:58:49 +0900
commit5628c38cc54aeef01f7ff7e6c4600d3baea87b87 (patch)
tree9df8501f8447af7f798f1e8e2d2f0f77dbcd7262 /README.md
parent88db491bc536d11c8dae5f20fce94f83b508063d (diff)
downloadplum-5628c38cc54aeef01f7ff7e6c4600d3baea87b87.tar.gz
client: make #request accept more arguments
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2abc857..007c7be 100644
--- a/README.md
+++ b/README.md
@@ -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 # => "..."