finalize

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name = "finalize"
)

Variables

This section is empty.

Functions

func New

Types

type Finalize

type Finalize struct {
	*reverseproxy.DefaultResponseFilter
}

func (*Finalize) Enable

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

Enable is always true for initial filter

func (*Finalize) OnRequest

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

func (*Finalize) OnResponseChunkImmutable

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

func (*Finalize) OnResponseEOFImmutable

func (f *Finalize) 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