Files
Mike Cohenanddependabot[bot] e84f6d262f Added a json schema validator to parse_json() and parse_yaml() (#4510)
This allows us to validate offline spec files and reject invalid files.

Also added an upload to the Server.Utils.CreateCollector that contains
the spec file for ease of use. Users now simply can download that spec
file and use it on the CLI builder.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-24 02:51:03 +10:00

9 lines
174 B
Go

package utils
import "net/http"
// Create a HTTPClient with superpowers to be used everywhere.
type HTTPClient interface {
Do(req *http.Request) (*http.Response, error)
}