Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WriteOnClose (0.36 sec)

  1. internal/ioutil/ioutil.go

    	}
    	return nil
    }
    
    // HasWritten returns true if at least one write operation was performed.
    func (w *WriteOnCloser) HasWritten() bool { return w.hasWritten }
    
    // WriteOnClose takes an io.Writer and returns an ioutil.WriteOnCloser.
    func WriteOnClose(w io.Writer) *WriteOnCloser {
    	return &WriteOnCloser{w, false}
    }
    
    type ioret[V any] struct {
    	val V
    	err error
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/s3-zip-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	// s3zip does not allow ranges
    	w.Header().Del(xhttp.AcceptRanges)
    
    	setHeadGetRespHeaders(w, r.Form)
    
    	httpWriter := xioutil.WriteOnClose(w)
    
    	// Write object content to response body
    	if _, err = xioutil.Copy(httpWriter, rc); err != nil {
    		if !httpWriter.HasWritten() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top