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