Skip to content


Browse files Browse the repository at this point in the history
Add support for GetHeaderParams to request
  • Loading branch information
thomdixon authored and casualjim committed Mar 3, 2019
1 parent 860a508 commit 25a2b41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/request.go
Expand Up @@ -283,6 +283,11 @@ func (r *request) SetHeaderParam(name string, values ...string) error {
return nil

// GetHeaderParams returns the all headers currently set for the request
func (r *request) GetHeaderParams() http.Header {
return r.header

// SetQueryParam adds a query param to the request
// when there is only 1 value provided for the varargs, it will set it.
// when there are several values provided for the varargs it will add it (no overriding)
Expand Down

0 comments on commit 25a2b41

Please sign in to comment.