SetHeader method added to client

This commit is contained in:
Daniel Eyring 2016-07-27 14:36:21 +02:00
parent 8f99657223
commit 12fe295146

View File

@ -33,6 +33,10 @@ func NewClient(uri string, user string, pw string) *Client {
return c return c
} }
func (c *Client) SetHeader(key, value string) {
c.headers.Add(key, value)
}
func (c *Client) Connect() error { func (c *Client) Connect() error {
rs, err := c.options("/") rs, err := c.options("/")
if err == nil { if err == nil {