Documentation ¶
Index ¶
- Constants
- func New(_ json.RawMessage) (reverseproxy.Filter, error)
- type LogHttp
- func (f *LogHttp) Enable(ctx context.Context, req *http.Request) bool
- func (f *LogHttp) OnRequest(ctx context.Context, w http.ResponseWriter, infor reverseproxy.HttpInfor) (signal reverseproxy.Signal, err error)
- func (f *LogHttp) OnResponseChunkImmutable(ctx context.Context, infor reverseproxy.HttpInfor, copiedChunk []byte) (signal reverseproxy.Signal, err error)
- func (f *LogHttp) OnResponseEOFImmutable(ctx context.Context, infor reverseproxy.HttpInfor, copiedChunk []byte) error
Constants ¶
View Source
const (
Name = "log-http"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(_ json.RawMessage) (reverseproxy.Filter, error)
Types ¶
type LogHttp ¶
type LogHttp struct { *reverseproxy.DefaultResponseFilter // contains filtered or unexported fields }
func (*LogHttp) OnRequest ¶
func (f *LogHttp) OnRequest(ctx context.Context, w http.ResponseWriter, infor reverseproxy.HttpInfor) (signal reverseproxy.Signal, err error)
func (*LogHttp) OnResponseChunkImmutable ¶
func (f *LogHttp) OnResponseChunkImmutable(ctx context.Context, infor reverseproxy.HttpInfor, copiedChunk []byte) (signal reverseproxy.Signal, err error)
func (*LogHttp) OnResponseEOFImmutable ¶
Click to show internal directories.
Click to hide internal directories.