peterbourgon/diskv

http file stream

Closed this issue · 1 comments

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

Yes, I'd probably io.Copy from the io.Reader returned by diskv to the http.ResponseWriter, unless you had more specific requirements.