Documentation ¶
Index ¶
- func Log(format string, v ...any)
- func PrintStat(stat *requests.Stat) string
- func ServeLog(f func(*requests.Stat)) func(http.Handler) http.Handler
- func ServeStat(ww *requests.ResponseWriter, r *http.Request, start time.Time, ...) *requests.Stat
- func ServeUpload(prefix string) http.HandlerFunc
- func TraceLv(v int, mLimit ...int) requests.Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeUpload ¶
func ServeUpload(prefix string) http.HandlerFunc
ServeUpload serve upload handler. curl http://127.0.0.1:8080/_upload H 'Content-Type: multipart/form-data' -F '/abc/123=@xxx.txt' -F '456=@abc/xyz.txt' upload files is $perfix/abc/123/xxx.txt and $perfix/456/xyz.txt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.