MCPcopy Index your code
hub / github.com/cubefs/cubefs / unsupportedOperationHandler

Method unsupportedOperationHandler

objectnode/api_handler.go:143–150  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

141}
142
143func (o *ObjectNode) unsupportedOperationHandler(w http.ResponseWriter, r *http.Request) {
144 log.LogInfof("Audit: unsupported operation: requestID(%v) remote(%v) action(%v) userAgent(%v)",
145 GetRequestID(r),
146 getRequestIP(r),
147 ActionFromRouteName(mux.CurrentRoute(r).GetName()),
148 r.UserAgent())
149 UnsupportedOperation.ServeResponse(w, r)
150}

Callers

nothing calls this directly

Calls 6

LogInfofFunction · 0.92
GetRequestIDFunction · 0.85
getRequestIPFunction · 0.85
ActionFromRouteNameFunction · 0.85
ServeResponseMethod · 0.80
GetNameMethod · 0.65

Tested by

no test coverage detected