- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewHTTPTransportWithTimeout (0.11 sec)
-
internal/http/transports.go
// Settings specific to proxied requests. tr.ResponseHeaderTimeout = 30 * time.Minute return func() *http.Transport { return tr } } // NewHTTPTransportWithTimeout allows setting a timeout for response headers func (s ConnSettings) NewHTTPTransportWithTimeout(timeout time.Duration) *http.Transport { tr := s.getDefaultTransport(0) // Settings specific to this transport. tr.ResponseHeaderTimeout = timeout
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6K bytes - Viewed (0) -
internal/config/policy/plugin/config.go
if v := getCfg(EnableHTTP2); v != "" { enableHTTP2, err = config.ParseBool(v) if err != nil { return args, err } } httpSettings.EnableHTTP2 = enableHTTP2 transport := httpSettings.NewHTTPTransportWithTimeout(time.Minute) args = Args{ URL: u, AuthToken: getCfg(AuthToken), Transport: transport, CloseRespFn: closeRespFn, } if err = args.Validate(); err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0)