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

Function httpPost

lib/api/api_test.go:568–571  ·  view source on GitHub ↗
(url string, body map[string]string, cookies []*http.Cookie, t *testing.T)

Source from the content-addressed store, hash-verified

566}
567
568func httpPost(url string, body map[string]string, cookies []*http.Cookie, t *testing.T) *http.Response {
569 t.Helper()
570 return httpRequest(http.MethodPost, url, body, "", "", "", "", "", "", cookies, t)
571}
572
573func TestHTTPLogin(t *testing.T) {
574 // This test intentionally does not use t.Parallel()

Callers 2

TestHTTPLoginFunction · 0.85
TestHtmlFormLoginFunction · 0.85

Calls 2

httpRequestFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected