needsTransport (destregistry/httpclient.go)

outpost · internal/destregistry/httpclient.go · go · Apache-2.0
infra, tag:knn-classified

Module exposing: needsTransport, NewHTTPClient, RoundTrip, HTTPClientConfig, connTraceTransport, userAgentTransport

// Source: https://github.com/hookdeck/outpost | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package destregistry

import (
	"crypto/tls"
	"net/http"
	"net/http/httptrace"
	"net/url"
	"time"

	"github.com/hookdeck/outpost/internal/proxychain"
)

type HTTPClientConfig struct {
	Timeout   *time.Duration
	UserAgent *string
	// Proxy lists the forward proxies to go through, nearest first. Empty
	// means a direct connection.
	Proxy []*url.URL
	// WrapTransport, if set, is invoked after a proxy has been installed on
	// the *http.Transport. Callers can use it to attach proxy-specific
	// concerns (e.g. OnProxyConnectResponse callbacks, response classifiers)
	// without bleeding those

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key