MCPcopy
hub / github.com/apache/answer / NewRespBodyData

Function NewRespBodyData

internal/base/handler/response.go:66–72  ·  view source on GitHub ↗

NewRespBodyData new response body with data

(code int, reason string, data any)

Source from the content-addressed store, hash-verified

64
65// NewRespBodyData new response body with data
66func NewRespBodyData(code int, reason string, data any) *RespBody {
67 return &RespBody{
68 Code: code,
69 Reason: reason,
70 Data: data,
71 }
72}

Callers 1

HandleResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected