Files
coder/coderd/x/chatd/mcpclient/http_client_test.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
362 B
Go
Raw Normal View History

package mcpclient_test
import (
"net/http"
"net/netip"
"github.com/coder/safedial"
)
var testLoopbackPrefixes = []netip.Prefix{
netip.MustParsePrefix("127.0.0.0/8"),
netip.MustParsePrefix("::1/128"),
}
func testMCPHTTPClient(base *http.Client) *http.Client {
return safedial.NewHTTPClient(base, safedial.WithAllowedPrefixes(testLoopbackPrefixes...))
}