I am implementing a file server, so http.ServerFile used to write back the file
content to remote client:
func downloadFile(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
...
http.ServeFile(w, r, filePath)
}
But sometimes the server want to abort the downloading, so what's the way
to abort the ResponseWriter ?
Any information would be very appreciated, thanks.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.