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

Function New

pkg/httpcli/httpcli.go:44–46  ·  view source on GitHub ↗

----------------------------------- Request way 1 ----------------------------------- New create a new Request

()

Source from the content-addressed store, hash-verified

42
43// New create a new Request
44func New() *Request {
45 return &Request{}
46}
47
48// Reset set all fields to default value, use at pool
49func (req *Request) Reset() {

Callers 10

TestBrowserRefreshFunction · 0.92
TestBrowserRefresh2Function · 0.92
TestBrowserRefreshFSFunction · 0.92
TestBrowserRefreshFS2Function · 0.92
TestGetStandardFunction · 0.70
TestDeleteStandardFunction · 0.70
TestPostStandardFunction · 0.70
TestPutStandardFunction · 0.70
TestPatchStandardFunction · 0.70
TestErrorFunction · 0.70

Calls

no outgoing calls

Tested by 10

TestBrowserRefreshFunction · 0.74
TestBrowserRefresh2Function · 0.74
TestBrowserRefreshFSFunction · 0.74
TestBrowserRefreshFS2Function · 0.74
TestGetStandardFunction · 0.56
TestDeleteStandardFunction · 0.56
TestPostStandardFunction · 0.56
TestPutStandardFunction · 0.56
TestPatchStandardFunction · 0.56
TestErrorFunction · 0.56