Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetricDialUpstream = "dialupstream" DialTimeoutHeader = "X-Lantern-Dial-Timeout" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferSource ¶
type MITMInterceptor ¶
type Opts ¶
type Opts struct {
IdleTimeout time.Duration
BufferSource BufferSource
Filter filters.Filter
OnError func(cs *filters.ConnectionState, req *http.Request, read bool, err error) *http.Response
OKWaitsForUpstream bool
OKSendsServerTiming bool
Dial DialFunc
ShouldMITM func(req *http.Request, upstreamAddr string) bool
MITMOpts *mitm.Opts
InitMITM func() (MITMInterceptor, error)
}
type Proxy ¶
type RequestAware ¶
Click to show internal directories.
Click to hide internal directories.