MCPcopy Index your code
hub / github.com/SignTools/SignTools / Check2xxCode

Function Check2xxCode

src/util/util.go:45–50  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

43}
44
45func Check2xxCode(code int) error {
46 if code < 200 || code > 299 {
47 return errors.New(fmt.Sprintf("non-2xx code: %d", code))
48 }
49 return nil
50}
51
52func WaitForServer(url string, timeout time.Duration) error {
53 ctx, cancelFunc := context.WithTimeout(context.Background(), timeout)

Callers 12

uploadSignedFileFunction · 0.92
takeJobFunction · 0.92
uploadUnsignedFunction · 0.92
TriggerMethod · 0.92
SetSecretsMethod · 0.92
TriggerMethod · 0.92
getProjectIdMethod · 0.92
SetSecretsMethod · 0.92
TriggerMethod · 0.92
SetSecretsMethod · 0.92
getPublicUrlMethod · 0.92
getPublicUrlMethod · 0.92

Calls 1

NewMethod · 0.80

Tested by 3

uploadSignedFileFunction · 0.74
takeJobFunction · 0.74
uploadUnsignedFunction · 0.74