MCPcopy Index your code
hub / github.com/syncthing/syncthing / httpGet

Function httpGet

lib/api/api_test.go:563–566  ·  view source on GitHub ↗
(url string, basicAuthUsername, basicAuthPassword, xapikeyHeader, authorizationBearer string, cookies []*http.Cookie, t *testing.T)

Source from the content-addressed store, hash-verified

561}
562
563func httpGet(url string, basicAuthUsername, basicAuthPassword, xapikeyHeader, authorizationBearer string, cookies []*http.Cookie, t *testing.T) *http.Response {
564 t.Helper()
565 return httpRequest(http.MethodGet, url, nil, basicAuthUsername, basicAuthPassword, xapikeyHeader, authorizationBearer, "", "", cookies, t)
566}
567
568func httpPost(url string, body map[string]string, cookies []*http.Cookie, t *testing.T) *http.Response {
569 t.Helper()

Callers 3

TestHTTPLoginFunction · 0.85
TestHtmlFormLoginFunction · 0.85
TestApiCacheFunction · 0.85

Calls 2

httpRequestFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected