Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for collectAPIStats (0.22 sec)

  1. cmd/api-router.go

    		HandlerFunc(s3APIMiddleware(api.ListBucketsHandler))
    
    	// If none of the routes match add default error handler routes
    	apiRouter.NotFoundHandler = collectAPIStats("notfound", httpTraceAll(errorResponseHandler))
    	apiRouter.MethodNotAllowedHandler = collectAPIStats("methodnotallowed", httpTraceAll(methodNotAllowedHandler("S3")))
    }
    
    // corsHandler handler for CORS (Cross Origin Resource Sharing)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  2. cmd/handler-utils.go

    			return
    		}
    
    		globalConnStats.incInternodeInputBytes(int64(tc.RequestRecorder.Size()))
    		globalConnStats.incInternodeOutputBytes(int64(tc.ResponseRecorder.Size()))
    	}
    }
    
    func collectAPIStats(api string, f http.HandlerFunc) http.HandlerFunc {
    	return func(w http.ResponseWriter, r *http.Request) {
    		resource, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    		if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
Back to top