response

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kind is the kind of plugin.
	Kind = constant.HTTPResponseFilter
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Strategy string `json:"strategy,omitempty" yaml:"strategy,omitempty"`
}

Config describe the config of Filter

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

HeaderFilter is http filter instance

func (*Filter) Apply

func (f *Filter) Apply() error

func (*Filter) Config

func (f *Filter) Config() interface{}

func (*Filter) Handle

func (f *Filter) Handle(c *contexthttp.HttpContext)

func (*Filter) PrepareFilterChain

func (f *Filter) PrepareFilterChain(ctx *contexthttp.HttpContext) error

type Plugin

type Plugin struct {
}

Plugin is http filter plugin.

func (*Plugin) CreateFilter

func (p *Plugin) CreateFilter() (filter.HttpFilter, error)

func (*Plugin) Kind

func (p *Plugin) Kind() string

Jump to

Keyboard shortcuts

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