http file stream
Closed this issue · 1 comments
idefixcert commented
Hi all,
I just wanna ask how you would serve a file saved in diskv via http.
I have seen the http.ServeContent, but this needs an io.ReadSeeker.
For http.ServeContent, we need the file.
would you do a io.Copy?
Regards Chris
peterbourgon commented
Yes, I'd probably io.Copy from the io.Reader returned by diskv to the http.ResponseWriter, unless you had more specific requirements.