Open
Description
Issue Description
Response should implement io.ReaderFrom interface, only when used as a static file server can the sendfile function be used
Working code to debug
// ReadFrom is here to optimize copying from an [*os.File] regular file
// to a [*net.TCPConn] with sendfile, or from a supported src type such
// as a *net.TCPConn on Linux with splice.
func (w *response) ReadFrom(src io.Reader) (n int64, err error) {
Version/commit
Metadata
Metadata
Assignees
Labels
No labels