exceptionrule

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: BSD-3-Clause, GPL-3.0, MIT, + 1 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExceptionModifiers

type ExceptionModifiers struct {
	AndModifiers []exceptionModifier
	OrModifiers  []exceptionModifier
}

type ExceptionRule

type ExceptionRule struct {
	RawRule    string
	FilterName *string

	Modifiers          ExceptionModifiers
	ModifyingModifiers []rulemodifiers.ModifyingModifier
	Document           bool
}

func (*ExceptionRule) Cancels

func (er *ExceptionRule) Cancels(r *rule.Rule) bool

func (*ExceptionRule) ParseModifiers

func (er *ExceptionRule) ParseModifiers(modifiers []string) error

func (*ExceptionRule) ShouldMatchReq

func (er *ExceptionRule) ShouldMatchReq(req *http.Request) bool

ShouldMatchReq returns true if the rule should match the request.

func (*ExceptionRule) ShouldMatchRes

func (er *ExceptionRule) ShouldMatchRes(res *http.Response) bool

ShouldMatchRes returns true if the rule should match the response.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL