MCPcopy Create free account
hub / github.com/chanify/chanify / JSON

Method JSON

core/webhook.go:163–167  ·  view source on GitHub ↗
(code int, obj interface{})

Source from the content-addressed store, hash-verified

161}
162
163func (l *luaSendContext) JSON(code int, obj interface{}) {
164 if val, err := json.Marshal(obj); err == nil {
165 l.msg = string(val)
166 }
167}
168
169func (l *luaSendContext) DataFromReader(code int, contentLength int64, contentType string, reader io.Reader, extraHeaders map[string]string) {
170 if val, err := io.ReadAll(reader); err == nil {

Callers

nothing calls this directly

Calls 1

MarshalMethod · 0.80

Tested by

no test coverage detected