Documentation
¶
Index ¶
- Variables
- type Rule
- func (rm *Rule) ModifyReq(req *http.Request) (modified bool)
- func (rm *Rule) ModifyRes(res *http.Response) (modified bool)
- func (rm *Rule) ParseModifiers(modifiers string) error
- func (rm *Rule) ShouldBlockReq(*http.Request) bool
- func (rm *Rule) ShouldMatchReq(req *http.Request) bool
- func (rm *Rule) ShouldMatchRes(res *http.Response) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbiddenHeader = errors.New("forbidden header") ErrInvalidRemoveheaderModifier = errors.New("invalid removeheader modifier") )
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct { // string representation RawRule string // FilterName is the name of the filter that the rule belongs to. FilterName *string // contains filtered or unexported fields }
Rule represents modifiers of a rule.
func (*Rule) ParseModifiers ¶
func (*Rule) ShouldBlockReq ¶
ShouldBlockReq returns true if the request should be blocked.
func (*Rule) ShouldMatchReq ¶
ShouldMatchReq returns true if the rule should match the request.
Click to show internal directories.
Click to hide internal directories.