Hey there I wolud linke to parse a http.resquest two times linke seen below. When I parsed the Body the first time, the body will be closed. I need some help/ hind what the best way is to handle this, do I have to create a copy of the request or is there a better way?
func myfunc(w http.ResponseWriter, req *http.Request) {
err := parseBody(req, &type1){
.....
}
err := parseBody(req, &type2){
.....
}
}
Thanks for help
Aucun commentaire:
Enregistrer un commentaire