summaryrefslogtreecommitdiff
path: root/lib/net/hippie/client.rb
diff options
context:
space:
mode:
authormo <mo@mokhan.ca>2018-05-07 15:52:33 -0600
committermo <mo@mokhan.ca>2018-05-07 15:52:33 -0600
commit94930e58756679db7803e7fd59664f696689388d (patch)
treeabd4616f139456c5021fc56e8a861ff62aba804c /lib/net/hippie/client.rb
parent84dc2be02ec86ebda02a6120bcc31e63048bc606 (diff)
allow clients to override the default headers.v0.1.4
Diffstat (limited to 'lib/net/hippie/client.rb')
-rw-r--r--lib/net/hippie/client.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb
index d85096e..9b810b0 100644
--- a/lib/net/hippie/client.rb
+++ b/lib/net/hippie/client.rb
@@ -9,12 +9,13 @@ module Net
def initialize(
certificate: nil,
+ headers: DEFAULT_HEADERS,
key: nil,
- passphrase: nil,
- mapper: JsonMapper.new
+ mapper: JsonMapper.new,
+ passphrase: nil
)
@certificate = certificate
- @default_headers = DEFAULT_HEADERS
+ @default_headers = headers
@key = key
@mapper = mapper
end