示例#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
}