MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / NewBodyParam

Function NewBodyParam

mcp-server/param.go:55–61  ·  view source on GitHub ↗
(contentType string)

Source from the content-addressed store, hash-verified

53}
54
55func NewBodyParam(contentType string) *BodyParam {
56 t := ContentType(contentType)
57 if t == "" {
58 t = ContentTypeJSON
59 }
60 return &BodyParam{contentType: t}
61}
62
63func (p *BodyParam) Set(k string, v interface{}) {
64 if p.params == nil {

Callers 1

generateInvokeToolFunction · 0.85

Calls 1

ContentTypeTypeAlias · 0.85

Tested by

no test coverage detected