Merge pull request #3 from deyring/master

SetHeader method added to client
This commit is contained in:
Christoph Polcin 2017-04-12 17:59:32 +02:00 committed by GitHub
commit a03a0a3645

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 {