mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 04:56:38 +00:00
Update README files
- Removes use of "our" from CONTRIBUTING guide - Updates/adds README.md files - Commnents and typo fix in watchdog - Adds good/bad examples of commit messages Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
@ -20,6 +20,10 @@ import (
|
||||
"github.com/openfaas/faas/watchdog/types"
|
||||
)
|
||||
|
||||
type requestInfo struct {
|
||||
headerWritten bool
|
||||
}
|
||||
|
||||
// buildFunctionInput for a GET method this is an empty byte array.
|
||||
func buildFunctionInput(config *WatchdogConfig, r *http.Request) ([]byte, error) {
|
||||
var res []byte
|
||||
@ -48,16 +52,13 @@ func buildFunctionInput(config *WatchdogConfig, r *http.Request) ([]byte, error)
|
||||
return res, err
|
||||
}
|
||||
|
||||
// debugHeaders prints HTTP headers as key/value pairs
|
||||
func debugHeaders(source *http.Header, direction string) {
|
||||
for k, vv := range *source {
|
||||
fmt.Printf("[%s] %s=%s\n", direction, k, vv)
|
||||
}
|
||||
}
|
||||
|
||||
type requestInfo struct {
|
||||
headerWritten bool
|
||||
}
|
||||
|
||||
func pipeRequest(config *WatchdogConfig, w http.ResponseWriter, r *http.Request, method string) {
|
||||
startTime := time.Now()
|
||||
|
||||
|
Reference in New Issue
Block a user