Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for ServeHTTP (0.16 sec)

  1. cmd/handler-api.go

    						// if client canceled we don't need to wait here forever.
    						return
    					}
    				}
    			}
    		}
    
    		pool, deadline := globalAPIConfig.getRequestsPool()
    		if pool == nil {
    			f.ServeHTTP(w, r)
    			return
    		}
    
    		globalHTTPStats.addRequestsInQueue(1)
    
    		if tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt); ok {
    			tc.FuncName = "s3.MaxClients"
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	// Registering only the GetObject handler.
    	apiRouter := initTestAPIEndPoints(obj, endpoints)
    	f := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		r.RequestURI = r.URL.RequestURI()
    		apiRouter.ServeHTTP(w, r)
    	})
    	return bucketName, f, nil
    }
    
    // prepare test backend.
    // create FS/Erasure/ErasureSet backend.
    // return object layer, backend disks.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/object-api-utils_test.go

    	if err != nil {
    		t.Fatalf("failed to create HTTP request for Put Object: <ERROR> %v", err)
    	}
    
    	// Since `apiRouter` satisfies `http.Handler` it has a ServeHTTP to execute the logic of the handler.
    	// Call the ServeHTTP to execute the handler.
    	apiRouter.ServeHTTP(rec, req)
    
    	ctx, cancel := context.WithCancel(GlobalContext)
    	defer cancel()
    
    	// Now check if we actually wrote to backend (regardless of the response
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  4. cmd/metrics.go

    				tc.FuncName = "handler.MetricsAuth"
    				tc.ResponseRecorder.LogErrBody = true
    			}
    
    			writeErrorResponseJSON(r.Context(), w, toAdminAPIErr(r.Context(), errAuthentication), r.URL)
    			return
    		}
    		h.ServeHTTP(w, r)
    	})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  5. internal/logger/logger.go

    	Output io.Writer = os.Stderr
    )
    
    var trimStrings []string
    
    // TimeFormat - logging time format.
    const TimeFormat string = "15:04:05 MST 01/02/2006"
    
    var matchingFuncNames = [...]string{
    	"http.HandlerFunc.ServeHTTP",
    	"cmd.serverMain",
    	// add more here ..
    }
    
    // quietFlag: Hide startup messages if enabled
    // jsonFlag: Display in JSON format, if enabled
    var (
    	quietFlag, jsonFlag, anonFlag bool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
Back to top