Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setRequestLimitMiddleware (0.12 sec)

  1. cmd/generic-handlers.go

    		if usersize > maxUserDataSize || size > maxHeaderSize {
    			return true
    		}
    	}
    	return false
    }
    
    // Limits body and header to specific allowed maximum limits as per S3/MinIO API requirements.
    func setRequestLimitMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top