MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / managementRouteKey

Function managementRouteKey

internal/pluginhost/management.go:224–226  ·  view source on GitHub ↗
(method, path string)

Source from the content-addressed store, hash-verified

222}
223
224func managementRouteKey(method, path string) string {
225 return strings.ToUpper(strings.TrimSpace(method)) + " " + strings.TrimSpace(path)
226}
227
228// ServeManagementHTTP dispatches an authenticated Management API request to a plugin route.
229func (h *Host) ServeManagementHTTP(w http.ResponseWriter, r *http.Request) bool {

Callers 4

registerResourceRouteFunction · 0.85
ServeManagementHTTPMethod · 0.85
ServeResourceHTTPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected