working commit
This commit is contained in:
@@ -12,6 +12,9 @@ package handler
|
||||
import (
|
||||
"mstore/app/logger"
|
||||
"mstore/app/operator"
|
||||
"mstore/app/router"
|
||||
|
||||
"sigs.k8s.io/yaml"
|
||||
)
|
||||
|
||||
type HandlerParams struct {
|
||||
@@ -31,3 +34,9 @@ func NewHandler(params *HandlerParams) (*Handler, error) {
|
||||
hand.logg = logger.NewLoggerWithSubject("handler")
|
||||
return hand, err
|
||||
}
|
||||
|
||||
func (hand *Handler) DumpHeaders(label string, rctx *router.Context) {
|
||||
headers := rctx.GetHeaders()
|
||||
yamlData, _ := yaml.Marshal(headers)
|
||||
hand.logg.Debugf("%s:\n%s\n", label, string(yamlData))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user