func (r *Response) SetHeaders(headers map[string]string) *Response {
	for key, value := range headers {
		r.Header.Add(key, value)
	}
	return r
}
SetHeaders sets a map of header fields in the mock response.
package gock
import (
	"bytes"
	"encoding/json"
	"encoding/xml"
	"io"
	"io/ioutil"
	"net/http"
	"time"
)
type MapResponseFunc func(*http.Response) *http.Response
type FilterResponseFunc func(*http.Response) bool
type Response struct {
	Mock Mock
	Error error
	UseNetwork bool
	StatusCode int
	Header http.Header
	Cookies []*http.Cookie
	BodyBuffer []byte
	ResponseDelay time.Duration
	Mappers []MapResponseFunc
	Filters []FilterResponseFunc
}
func NewResponse() *Response {
	return &Response{Header: make(http.Header)}
}
func (r *Response) Status(code int) *Response {
	r.StatusCode = code
	return r
}
func (r *Response) Type(kind string) *Response {
	mime := BodyTypeAliases[kind]
	if mime != "" {
		kind = mime
	}
	r.Header.Set("Content-Type", kind)
	return r
}
func (r *Response) SetHeader(key, value string) *Response {
	r.Header.Set(key, value)
	return r
}
func (r *Response) AddHeader(key, value string) *Response {
	r.Header.Add(key, value)
	return r
}