Пример #1
0
// SetQuery sets the whole request query
func (r *request) SetQuery(q map[string]string) Request {
	r.query = array.CloneMap(q)
	return r
}
Пример #2
0
// SetHeaders sets the whole request headers
func (r *request) SetHeaders(h map[string]string) Request {
	r.headers = array.CloneMap(h)
	return r
}