Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HeaderSize (0.13 sec)

  1. internal/bucket/bandwidth/reader.go

    	need := len(buf)         // number of bytes requested by caller
    	hdr := r.opts.HeaderSize // remaining header bytes
    	var tokens int           // number of tokens to request
    
    	if hdr > 0 { // available tokens go towards header first
    		if hdr < b { // all of header can be accommodated
    			r.opts.HeaderSize = 0
    			need = int(math.Min(float64(b-hdr), float64(need))) // use remaining tokens towards payload
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 14:57:31 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. internal/http/response-recorder.go

    		flusher.Flush()
    	}
    }
    
    // Size - returns  the number of bytes written
    func (lrw *ResponseRecorder) Size() int {
    	return lrw.bytesWritten
    }
    
    // HeaderSize - returns the number of bytes of response headers written
    func (lrw *ResponseRecorder) HeaderSize() int {
    	return lrw.headerBytesWritten
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. internal/logger/audit.go

    		if ok {
    			statusCode = tc.ResponseRecorder.StatusCode
    			outputBytes = int64(tc.ResponseRecorder.Size())
    			headerBytes = int64(tc.ResponseRecorder.HeaderSize())
    			timeToResponse = time.Now().UTC().Sub(tc.ResponseRecorder.StartTime)
    			timeToFirstByte = tc.ResponseRecorder.TTFB()
    		}
    
    		entry.AccessKey = reqInfo.Cred.AccessKey
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. cmd/bucket-replication.go

    			Host:       globalLocalNodeName,
    		})
    		return
    	}
    
    	var headerSize int
    	for k, v := range putOpts.Header() {
    		headerSize += len(k) + len(v)
    	}
    
    	opts := &bandwidth.MonitorReaderOptions{
    		BucketOptions: bandwidth.BucketOptions{
    			Name:           ri.Bucket,
    			ReplicationARN: tgt.ARN,
    		},
    		HeaderSize: headerSize,
    	}
    	newCtx := ctx
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
Back to top