MCPcopy
hub / github.com/TecharoHQ/anubis / httpClient

Function httpClient

lib/anubis_test.go:228–242  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

226}
227
228func httpClient(t *testing.T) *http.Client {
229 t.Helper()
230
231 cli := &http.Client{
232 Jar: &loggingCookieJar{t: t, cookies: map[string][]*http.Cookie{}},
233 CheckRedirect: func(req *http.Request, via []*http.Request) error {
234 return http.ErrUseLastResponse
235 },
236 Transport: &userAgentRoundTripper{
237 rt: http.DefaultTransport,
238 },
239 }
240
241 return cli
242}
243
244func TestLoadPolicies(t *testing.T) {
245 for _, fname := range []string{"botPolicies.yaml"} {

Callers 7

TestCVE2025_24369Function · 0.85
TestCookieSettingsFunction · 0.85
TestBasePrefixFunction · 0.85
TestRuleChangeFunction · 0.85
TestPassChallengeXSSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected