MCPcopy Create free account
hub / github.com/Authula/authula / SetJSONResponse

Method SetJSONResponse

models/context.go:104–116  ·  view source on GitHub ↗

SetJSONResponse marshals the provided payload and stores it as the captured response body with the appropriate content type header. If marshaling fails, it falls back to a 500 Internal Server Error response.

(status int, payload any)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

RequireAuthenticatedFunction · 0.80
RequireActorFunction · 0.80
RequirePublicOrUserActorFunction · 0.80
HandleErrorFunction · 0.80
HandlerMethod · 0.80
HandlerMethod · 0.80
validateCSRFTokenMethod · 0.80
MiddlewareMethod · 0.80
generateCSRFTokenHookMethod · 0.80
validateCSRFTokenHookMethod · 0.80
executeRateLimitMethod · 0.80

Calls 2

SetResponseMethod · 0.95
SetMethod · 0.65