MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / SetURL

Method SetURL

pkg/httpcli/httpcli.go:63–66  ·  view source on GitHub ↗

SetURL set URL

(path string)

Source from the content-addressed store, hash-verified

61
62// SetURL set URL
63func (req *Request) SetURL(path string) *Request {
64 req.url = path
65 return req
66}
67
68// SetParams parameters after setting the URL
69func (req *Request) SetParams(params map[string]interface{}) *Request {

Callers 12

doFunction · 0.95
gDoFunction · 0.95
TestBrowserRefreshFunction · 0.80
TestBrowserRefresh2Function · 0.80
TestBrowserRefreshFSFunction · 0.80
TestBrowserRefreshFS2Function · 0.80
TestGetStandardFunction · 0.80
TestDeleteStandardFunction · 0.80
TestPostStandardFunction · 0.80
TestPutStandardFunction · 0.80
TestPatchStandardFunction · 0.80
TestErrorFunction · 0.80

Calls

no outgoing calls

Tested by 10

TestBrowserRefreshFunction · 0.64
TestBrowserRefresh2Function · 0.64
TestBrowserRefreshFSFunction · 0.64
TestBrowserRefreshFS2Function · 0.64
TestGetStandardFunction · 0.64
TestDeleteStandardFunction · 0.64
TestPostStandardFunction · 0.64
TestPutStandardFunction · 0.64
TestPatchStandardFunction · 0.64
TestErrorFunction · 0.64