Skip to content

Commit 25a2b41

Browse files
thomdixoncasualjim
authored andcommitted
Add support for GetHeaderParams to request
1 parent 860a508 commit 25a2b41

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

client/request.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ func (r *request) SetHeaderParam(name string, values ...string) error {
283283
return nil
284284
}
285285

286+
// GetHeaderParams returns the all headers currently set for the request
287+
func (r *request) GetHeaderParams() http.Header {
288+
return r.header
289+
}
290+
286291
// SetQueryParam adds a query param to the request
287292
// when there is only 1 value provided for the varargs, it will set it.
288293
// when there are several values provided for the varargs it will add it (no overriding)

0 commit comments

Comments
 (0)