aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-11-09 22:38:26 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-11-09 22:38:26 +0900
commit223addb898938dec5cd5196f7ad9f0b3aca17a99 (patch)
tree3bbdef6be91abf3d35afe34305886508b94c8034 /lib
parente44ecc10fe65ae0a3b5887e1bfcbf16a9acc152f (diff)
downloadplum-223addb898938dec5cd5196f7ad9f0b3aca17a99.tar.gz
tests: add test cases for Client
Diffstat (limited to 'lib')
-rw-r--r--lib/plum/client.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plum/client.rb b/lib/plum/client.rb
index b78e25c..c2a1b83 100644
--- a/lib/plum/client.rb
+++ b/lib/plum/client.rb
@@ -2,17 +2,17 @@
module Plum
class Client
DEFAULT_CONFIG = {
+ http2: true,
scheme: "https",
+ hostname: nil,
verify_mode: OpenSSL::SSL::VERIFY_PEER,
ssl_context: nil,
- hostname: nil,
http2_settings: {},
user_agent: "plum/#{Plum::VERSION}",
- http2: true,
}.freeze
attr_reader :host, :port, :config
- attr_reader :socket
+ attr_reader :socket, :session
# Creates a new HTTP client and starts communication.
# A shorthand for `Plum::Client.new(args).start(&block)`