full form parsing

This commit is contained in:
bronku 2025-02-07 09:27:20 +01:00
parent 0570e47be9
commit 475d79f16e
5 changed files with 68 additions and 19 deletions

View file

@ -9,9 +9,9 @@ import (
func logger(in http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
log := fmt.Sprint(r.Method, " ", r.URL.String())
//log := fmt.Sprint(r.Method, " ", r.URL.String())
fmt.Println(r.Method, r.URL.String())
in(w, r)
log += fmt.Sprint(" ", time.Since(start))
fmt.Println(log)
fmt.Println(r.Method, "finished in", time.Since(start))
}
}