- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for guessIsRPCReq (1.67 sec)
-
cmd/generic-handlers_test.go
func TestGuessIsRPC(t *testing.T) { if guessIsRPCReq(nil) { t.Fatal("Unexpected return for nil request") } u, err := url.Parse("http://localhost:9000/minio/lock") if err != nil { t.Fatal(err) } r := &http.Request{ Proto: "HTTP/1.0", Method: http.MethodPost, URL: u, } if !guessIsRPCReq(r) { t.Fatal("Test shouldn't fail for a possible net/rpc request.") }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.2K bytes - Viewed (0) -
cmd/generic-handlers.go
req.URL.Path == minioReservedBucketPath+prometheusMetricsV2ResourcePath || strings.HasPrefix(req.URL.Path, minioReservedBucketPath+metricsV3Path) } // guessIsRPCReq - returns true if the request is for an RPC endpoint. func guessIsRPCReq(req *http.Request) bool { if req == nil { return false } if req.Method == http.MethodGet && req.URL != nil { switch req.URL.Path {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 20.7K bytes - Viewed (1)