We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 561b601 commit 567070fCopy full SHA for 567070f
option/option.go
@@ -96,7 +96,9 @@ func (w withScopes) Apply(o *internal.DialSettings) {
96
copy(o.Scopes, w)
97
}
98
99
-// WithUserAgent returns a ClientOption that sets the User-Agent.
+// WithUserAgent returns a ClientOption that sets the User-Agent. This option
100
+// is incompatible with the [WithHTTPClient] option. If you wish to provide a
101
+// custom client you will need to add this header via RoundTripper middleware.
102
func WithUserAgent(ua string) ClientOption {
103
return withUA(ua)
104
0 commit comments