Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter proxifies an URL and filter the response.
func NewFromEnv ¶
NewFromEnv instantiate a Filter object from the environment variable configuration. nolint: funlen
func NewFromJSON ¶
NewFromJSON instantiate a Filter object from the configuration file.
func NewFromYAML ¶
NewFromYAML instantiate a Filter object from the configuration file.
func (*Filter) IsConcerned ¶ added in v1.1.0
IsConcerned determine if the request fulfil the filter condition.
func (*Filter) IsConditional ¶ added in v1.1.0
IsConditional returns true if the filter has conditions.
func (*Filter) Serve ¶
func (f *Filter) Serve(res http.ResponseWriter, req *http.Request)
Serve starts a filtering http proxy.
func (*Filter) UpdateRequest ¶ added in v1.0.2
UpdateRequest will be called back when the request is received by the proxy.
Click to show internal directories.
Click to hide internal directories.