Add huge response body test (#1437)

This commit is contained in:
Ta-Ching Chen
2019-11-26 12:50:41 +08:00
committed by GitHub
parent ca28f962d4
commit e38baeec36
4 changed files with 8058 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
package main
import (
"io/ioutil"
"net/http"
)
// Handler is the entry point for this fission function
func Handler(w http.ResponseWriter, r *http.Request) {
bytes, err := ioutil.ReadAll(r.Body)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
w.Write(bytes)
}