MCPcopy Create free account
hub / github.com/compozy/agh / writeJSON

Function writeJSON

internal/registry/github/client_test.go:1081–1084  ·  view source on GitHub ↗
(writer http.ResponseWriter, body string)

Source from the content-addressed store, hash-verified

1079}
1080
1081func writeJSON(writer http.ResponseWriter, body string) {
1082 writer.Header().Set("Content-Type", "application/json")
1083 _, _ = writer.Write([]byte(body))
1084}
1085
1086const serverURLPlaceholder = "SERVER_URL"
1087

Calls 2

WriteMethod · 0.65
SetMethod · 0.45

Tested by

no test coverage detected