MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / writeJSONOutput

Method writeJSONOutput

internal/test/oidc.go:436–442  ·  view source on GitHub ↗
(writer goHttp.ResponseWriter, result map[string]interface{})

Source from the content-addressed store, hash-verified

434}
435
436func (o *oidcHandler) writeJSONOutput(writer goHttp.ResponseWriter, result map[string]interface{}) {
437 writer.Header().Set("Content-Type", "application/json")
438 encoder := json.NewEncoder(writer)
439 if err := encoder.Encode(result); err != nil {
440 panic(err)
441 }
442}
443
444func (o *oidcHandler) device(writer goHttp.ResponseWriter, request *goHttp.Request) {
445

Callers 2

configurationMethod · 0.95
jwksMethod · 0.95

Calls 2

EncodeMethod · 0.95
SetMethod · 0.65

Tested by

no test coverage detected