MCPcopy Index your code
hub / github.com/0xUnixIO/pulse / writeMethodNotAllowed

Function writeMethodNotAllowed

internal/serverapi/api.go:846–849  ·  view source on GitHub ↗
(w http.ResponseWriter, allow string)

Source from the content-addressed store, hash-verified

844}
845
846func writeMethodNotAllowed(w http.ResponseWriter, allow string) {
847 w.Header().Set("Allow", allow)
848 writeJSON(w, http.StatusMethodNotAllowed, map[string]any{"error": "method not allowed"})
849}
850
851// ServerPort 从 PULSE_SERVER_ADDR 解析监听端口,默认返回 8080。
852func ServerPort() int {

Callers 15

handleNodesMethod · 0.85
handleNodeMethod · 0.85
handleNodeRuntimeMethod · 0.85
handleNodeMetricsMethod · 0.85
handleNodeStatusMethod · 0.85
handleNodeConfigMethod · 0.85
handleNodeLogsMethod · 0.85
handleNodeLogsStreamMethod · 0.85
handleNodeUsageMethod · 0.85

Calls 1

writeJSONFunction · 0.70

Tested by

no test coverage detected