We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f496ad commit 4fc3228Copy full SHA for 4fc3228
option/requestoption.go
@@ -27,10 +27,10 @@ type RequestOption = requestconfig.RequestOption
27
// to use. While any value can be set here, invalid values are ignored and will recieve the
28
// default value of today.
29
func WithAPIVersion(value string) RequestOption {
30
- return func(r *requestconfig.RequestConfig) error {
+ return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error {
31
r.Request.Header.Set("api-version", value)
32
return nil
33
- }
+ })
34
}
35
36
// WithBaseURL returns a RequestOption that sets the BaseURL for the client.
0 commit comments