Documentation ¶
Index ¶
- Constants
- func DecorateRequest(roundTripper http.RoundTripper, req *http.Request) (http.RoundTripper, *http.Request)
- func NewConnectReq(addr string) *http.Request
- func WrapConn(conn net.Conn, label string, dirOut bool) *wrappedConnection
- func WrapRequestBody(ctx filters.Context, body io.ReadCloser, contentType string, prolog []byte) (*wrappedRequestBody, error)
- func WrapResponseBody(ctx filters.Context, body io.ReadCloser, statusCode int32, contentType string, ...) (*wrappedResponseBody, error)
- type ChainedProxyFilter
- type ContextInitFilter
- type DnsLookupFilter
- type ErrorHandlerFilter
- type NonproxyFilter
- type RecorderFilter
- type RecorderProxy
- type TracingInitFilter
Constants ¶
const (
CRLF = "\r\n"
)
Variables ¶
This section is empty.
Functions ¶
func DecorateRequest ¶ added in v0.2.4
func DecorateRequest(roundTripper http.RoundTripper, req *http.Request) (http.RoundTripper, *http.Request)
func NewConnectReq ¶ added in v0.2.4
func WrapRequestBody ¶ added in v0.2.4
func WrapResponseBody ¶ added in v0.2.4
Types ¶
type ChainedProxyFilter ¶ added in v0.2.4
type ChainedProxyFilter struct {
// contains filtered or unexported fields
}
ChainedProxyFilter is a filter which rewrites request to support chained proxies.
type ContextInitFilter ¶ added in v0.2.4
type ContextInitFilter struct {
// contains filtered or unexported fields
}
ContextInitFilter is a filter which initializes the context with sessions to external services.
type DnsLookupFilter ¶ added in v0.2.4
type DnsLookupFilter struct {
DnsResolverClient dnsresolverV1.DnsResolverClient
}
DnsLookupFilter is a filter which returns an error if the proxy is accessed as if it where a web server and not a proxy.
type ErrorHandlerFilter ¶ added in v0.2.4
type ErrorHandlerFilter struct {
// contains filtered or unexported fields
}
ErrorHandlerFilter is a filter which initializes the context with sessions to external services.
type NonproxyFilter ¶ added in v0.2.4
type NonproxyFilter struct{}
NonproxyFilter is a filter which returns an error if the proxy is accessed as if it where a web server and not a proxy.
type RecorderFilter ¶ added in v0.2.4
type RecorderFilter struct { DnsResolverClient dnsresolverV1.DnsResolverClient // contains filtered or unexported fields }
RecorderFilter is a filter which returns an error if the proxy is accessed as if it where a web server and not a proxy.
type RecorderProxy ¶
type RecorderProxy struct { proxy.Proxy Addr string ConnectionTimeout time.Duration // contains filtered or unexported fields }
func NewRecorderProxy ¶
func NewRecorderProxy(id int, addr string, port int, conn *serviceconnections.Connections, connectionTimeout time.Duration, nextProxyAddr string) *RecorderProxy
func (*RecorderProxy) Close ¶ added in v0.2.4
func (proxy *RecorderProxy) Close()
func (*RecorderProxy) Start ¶
func (proxy *RecorderProxy) Start()
type TracingInitFilter ¶ added in v0.2.4
type TracingInitFilter struct{}
TracingInitFilter is a filter which initializes the context with tracing.