Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sendFile (0.2 sec)

  1. src/net/http/server.go

    // from io.Copy.
    type writerOnly struct {
    	io.Writer
    }
    
    // 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) {
    	buf := getCopyBuf()
    	defer putCopyBuf(buf)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top