package
7.6.139
Repository: https://github.com/getlantern/flashlight.git
Documentation: pkg.go.dev

# Functions

AsRoundTripper turns the given function into an http.RoundTripper.
ChainedNonPersistent creates an http.RoundTripper that proxies through chained servers and does not use keepalive connections.
ChainedPersistent creates an http.RoundTripper that uses keepalive connections persists and proxies through chained servers.
ChainedThenDirectThenFrontedClient returns an http.Client that first attempts to connect to a chained proxy, then falls back to connecting directly to the origin, and finally falls back to using domain fronting.
ChainedThenFronted creates a new http.RoundTripper that attempts to send requests first through a chained server and then falls back to using a direct fronted server if the chained route didn't work.
ChainedThenFrontedWith creates a new http.RoundTripper that attempts to send requests first through a chained server and then falls back to using a direct fronted server if the chained route didn't work.
DirectThenFrontedClient returns an http.Client that first attempts to connect directly to the origin and then falls back to using domain fronting.
Fronted creates an http.RoundTripper that proxies request using domain fronting.
NewProxiedFlow returns a new ProxiedFlow.
Uses ParallelPreferChained for idempotent requests (HEAD and GET) and ChainedThenFronted for all others.
ParallelPreferChained creates a new http.RoundTripper that attempts to send requests through both chained and direct fronted routes in parallel.
ParallelPreferChainedWith creates a new http.RoundTripper that attempts to send requests through both chained and direct fronted routes in parallel.
SetProxyAddr sets the eventual.Getter that's used to determine the proxy's address.

# Constants

No description provided by the author

# Variables

ErrChainedProxyUnavailable indicates that we weren't able to find a chained proxy.
Enum of most used roundtrippers.
Enum of most used roundtrippers.
Enum of most used roundtrippers.

# Structs

No description provided by the author
ProxiedFlowComponent is basically a wrapper around an http.RoundTripper that includes an ID and some additional flags.
ProxiedFlowInput is the input to NewProxiedFlow().
ProxiedFlowResponse is a wrapper around an http.Response and an error, both coming from ProxiedFlowComponent.RoundTrip().

# Interfaces

RoundTripper implements http.RoundTripper and allows configuration of the masquerade timeout.

# Type aliases

No description provided by the author
OnCompleteRoundTrip is called by the flow when it completes a roundtrip.
OnStartRoundTrip is called by the flow when it starts a new roundtrip.