MCPcopy Create free account
hub / github.com/brianshea2/addr.tools / JSONObject

Method JSONObject

internal/httputil/request.go:67–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func (p *RequestValues) JSONObject() (JSONObject, error) {
68 if p.jsonObj == nil {
69 body, err := p.Body()
70 if err != nil {
71 return nil, err
72 }
73 json.Unmarshal(body, &p.jsonObj)
74 if p.jsonObj == nil {
75 p.jsonObj = make(JSONObject)
76 }
77 }
78 return p.jsonObj, nil
79}
80
81func (p *RequestValues) Query() url.Values {
82 if p.query == nil {

Callers 1

ValuesMethod · 0.95

Calls 1

BodyMethod · 0.95

Tested by

no test coverage detected