From c35a53de993ae2cd2eeb266b49e955e6595ac77f Mon Sep 17 00:00:00 2001 From: Brandon Johnson Date: Thu, 12 Sep 2024 14:19:01 -0400 Subject: [PATCH] Clarify HeaderFunc argument is mutable --- client/types/startsettings.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/types/startsettings.go b/client/types/startsettings.go index 47bd3e4..b968c7f 100644 --- a/client/types/startsettings.go +++ b/client/types/startsettings.go @@ -19,6 +19,7 @@ type StartSettings struct { // Optional function that can be used to modify the HTTP headers // before each HTTP request. + // Can modify and return the argument or return the argument without modifying. HeaderFunc func(http.Header) http.Header // Optional TLS config for HTTP connection.