initialize

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "initialize"
)

Variables

This section is empty.

Functions

func New

Types

type Initialize

type Initialize struct {
	*reverseproxy.DefaultResponseFilter
}

func (*Initialize) Enable

func (f *Initialize) Enable(ctx context.Context, req *http.Request) bool

Enable is always true for initialize filter

func (*Initialize) OnRequest

func (f *Initialize) OnRequest(ctx context.Context, w http.ResponseWriter, infor reverseproxy.HttpInfor) (signal reverseproxy.Signal, err error)

func (*Initialize) OnResponseChunkImmutable

func (f *Initialize) OnResponseChunkImmutable(ctx context.Context, infor reverseproxy.HttpInfor, copiedChunk []byte) (signal reverseproxy.Signal, err error)

func (*Initialize) OnResponseEOFImmutable

func (f *Initialize) OnResponseEOFImmutable(ctx context.Context, infor reverseproxy.HttpInfor, copiedChunk []byte) error

Jump to

Keyboard shortcuts

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