Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BalooResponse = plugin.NewResponsePlugin(context.HandlerFunc( func(ctx *context.Context, h context.Handler) { body, err := ioutil.ReadAll(ctx.Response.Body) if err != nil { h.Error(ctx, err) return } if err := ctx.Response.Body.Close(); err != nil { h.Error(ctx, err) return } ctx.Response.Body = ioutil.NopCloser(bytes.NewBuffer(body)) fmt.Println(string(body)) h.Next(ctx) }, ))
BalooResponse is a plugin for HTTP response logging
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.