Documentation ¶
Index ¶
- Constants
- func New(_ json.RawMessage) (reverseproxy.Filter, error)
- type Finalize
- func (f *Finalize) Enable(ctx context.Context, req *http.Request) bool
- func (f *Finalize) OnRequest(ctx context.Context, w http.ResponseWriter, infor reverseproxy.HttpInfor) (signal reverseproxy.Signal, err error)
- func (f *Finalize) OnResponseChunkImmutable(ctx context.Context, infor reverseproxy.HttpInfor, copiedChunk []byte) (signal reverseproxy.Signal, err error)
- func (f *Finalize) OnResponseEOFImmutable(ctx context.Context, infor reverseproxy.HttpInfor, copiedChunk []byte) error
Constants ¶
View Source
const (
Name = "finalize"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(_ json.RawMessage) (reverseproxy.Filter, error)
Types ¶
type Finalize ¶
type Finalize struct {
*reverseproxy.DefaultResponseFilter
}
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 ¶
Click to show internal directories.
Click to hide internal directories.