From 12fe29514618fe4caba1d726bdab1e4c5e41512e Mon Sep 17 00:00:00 2001 From: Daniel Eyring Date: Wed, 27 Jul 2016 14:36:21 +0200 Subject: [PATCH] SetHeader method added to client --- client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.go b/client.go index 7e2c1b2..3c665c3 100644 --- a/client.go +++ b/client.go @@ -33,6 +33,10 @@ func NewClient(uri string, user string, pw string) *Client { return c } +func (c *Client) SetHeader(key, value string) { + c.headers.Add(key, value) +} + func (c *Client) Connect() error { rs, err := c.options("/") if err == nil {