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

Function NewRespBody

internal/base/handler/response.go:49–54  ·  view source on GitHub ↗

NewRespBody new response body

(code int, reason string)

Source from the content-addressed store, hash-verified

47
48// NewRespBody new response body
49func NewRespBody(code int, reason string) *RespBody {
50 return &RespBody{
51 Code: code,
52 Reason: reason,
53 }
54}
55
56// NewRespBodyFromError new response body from error
57func NewRespBodyFromError(e *errors.Error) *RespBody {

Callers 1

HandleResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected