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

Function Get

pkg/httpcli/httpcli.go:370–374  ·  view source on GitHub ↗

Get request, return custom json format

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

Source from the content-addressed store, hash-verified

368
369// Get request, return custom json format
370func Get(result interface{}, urlStr string, opts ...Option) error {
371 o := defaultOptions()
372 o.apply(opts...)
373 return gDo("GET", result, urlStr, o.params, o.headers, o.timeout)
374}
375
376// Delete request, return custom json format
377func Delete(result interface{}, urlStr string, opts ...Option) error {

Callers 11

TestTracingFunction · 0.92
TestAuthFunction · 0.92
TestRateLimiterFunction · 0.92
TestCircuitBreakerFunction · 0.92
TestRequestFunction · 0.92
TestRequest2Function · 0.92
TestAuthFunction · 0.92
TestRespondFunction · 0.92
TestGetFunction · 0.70

Calls 3

gDoFunction · 0.85
defaultOptionsFunction · 0.70
applyMethod · 0.65

Tested by 11

TestTracingFunction · 0.74
TestAuthFunction · 0.74
TestRateLimiterFunction · 0.74
TestCircuitBreakerFunction · 0.74
TestRequestFunction · 0.74
TestRequest2Function · 0.74
TestAuthFunction · 0.74
TestRespondFunction · 0.74
TestGetFunction · 0.56