Skip to content

Commit 860a508

Browse files
thomdixoncasualjim
authored andcommitted
Add support for getting headers to ClientRequest
This is necessary for things like signed requests.
1 parent 51e87ea commit 860a508

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

client_request.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package runtime
1717
import (
1818
"io"
1919
"io/ioutil"
20+
"net/http"
2021
"net/url"
2122
"time"
2223

@@ -40,6 +41,8 @@ type ClientRequestWriter interface {
4041
// add information to a swagger client request
4142
type ClientRequest interface {
4243
SetHeaderParam(string, ...string) error
44+
45+
GetHeaderParams() http.Header
4346

4447
SetQueryParam(string, ...string) error
4548

0 commit comments

Comments
 (0)