MCPcopy Create free account
hub / github.com/cubefs/cubefs / SetResponseStatusCode

Function SetResponseStatusCode

objectnode/api_context.go:56–58  ·  view source on GitHub ↗
(r *http.Request, code string)

Source from the content-addressed store, hash-verified

54}
55
56func SetResponseStatusCode(r *http.Request, code string) {
57 mux.Vars(r)[ContextKeyStatusCode] = code
58}
59
60func GetStatusCodeFromContext(r *http.Request) int {
61 code, err := strconv.Atoi(mux.Vars(r)[ContextKeyStatusCode])

Callers 1

ServeResponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…