Forward client HTTP headers through pipeline

This commit is contained in:
Alex
2017-03-31 09:10:09 +01:00
committed by Alex Ellis
parent a740783c78
commit c705cd8e33
6 changed files with 80 additions and 18 deletions

View File

@ -58,13 +58,15 @@ func (ReadConfig) Read(hasEnv HasEnv) WatchdogConfig {
cfg.writeDebug = parseBoolValue(hasEnv.Getenv("write_debug"))
cfg.marshallRequest = parseBoolValue(hasEnv.Getenv("marshall_request"))
cfg.debugHeaders = parseBoolValue(hasEnv.Getenv("debug_headers"))
return cfg
}
// WatchdogConfig for the process.
type WatchdogConfig struct {
readTimeout time.Duration
readTimeout time.Duration
writeTimeout time.Duration
// faasProcess is the process to exec
faasProcess string
@ -73,4 +75,7 @@ type WatchdogConfig struct {
writeDebug bool
marshallRequest bool
// prints out all incoming and out-going HTTP headers
debugHeaders bool
}