MCPcopy Create free account
hub / github.com/atripati/ark / AddDomain

Method AddDomain

pkg/tools/http.go:188–195  ·  view source on GitHub ↗
(domain string)

Source from the content-addressed store, hash-verified

186}
187
188func (h *HTTPExecutor) AddDomain(domain string) {
189 for _, d := range h.AllowedDomains {
190 if d == domain {
191 return // already allowed
192 }
193 }
194 h.AllowedDomains = append(h.AllowedDomains, domain)
195}
196func (h *HTTPExecutor) Execute(config HTTPToolConfig, params map[string]interface{}) (string, error) {
197 reqURL := config.URL
198 for key, val := range params {

Callers 1

RegisterCustomHTTPFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected