package
2.0.1
Repository: https://github.com/getlantern/proxy.git
Documentation: pkg.go.dev

# Functions

Discard discards the given request.
Fail fails processing, returning a response with the given status code and description populated from error.
Intercept returns a Handler that intercepts the specified Handler with the given Filter.
Join constructs a new chain of filters that executes the filters in order until it encounters a filter that returns false.
NewConnectionState creates a new ConnectionState object.
ShortCircuit is a convenience method for creating short-circuiting responses.

# Structs

ConnectionState holds data about a connection.

# Interfaces

Filter supports intercepting and modifying http requests and responses.

# Type aliases

Chain is a chain of Filters that acts as an http.Handler.
FilterFunc adapts a function to a Filter.
Next is a function that's used to indicate that request processing should continue as usual.