MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / HTTPGetString

Function HTTPGetString

labs/wasm-policy-sdk/go/http.go:56–62  ·  view source on GitHub ↗

HTTPGetString performs a GET request and returns the response as a string. Only hostnames configured in the policy engine's AllowedHosts are accessible.

(url string)

Source from the content-addressed store, hash-verified

54// HTTPGetString performs a GET request and returns the response as a string.
55// Only hostnames configured in the policy engine's AllowedHosts are accessible.
56func HTTPGetString(url string) (string, error) {
57 body, err := HTTPGet(url)
58 if err != nil {
59 return "", err
60 }
61 return string(body), nil
62}

Callers

nothing calls this directly

Calls 1

HTTPGetFunction · 0.85

Tested by

no test coverage detected