MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / Delete

Function Delete

pkg/httpcli/httpcli.go:377–381  ·  view source on GitHub ↗

Delete request, return custom json format

(result interface{}, urlStr string, opts ...Option)

Source from the content-addressed store, hash-verified

375
376// Delete request, return custom json format
377func Delete(result interface{}, urlStr string, opts ...Option) error {
378 o := defaultOptions()
379 o.apply(opts...)
380 return gDo("DELETE", result, urlStr, o.params, o.headers, o.timeout)
381}
382
383// Post request, return custom json format
384func Post(result interface{}, urlStr string, body interface{}, opts ...Option) error {

Callers 4

TestRequestFunction · 0.92
TestDeleteFunction · 0.85

Calls 3

gDoFunction · 0.85
defaultOptionsFunction · 0.70
applyMethod · 0.65

Tested by 4

TestRequestFunction · 0.74
TestDeleteFunction · 0.68