MCPcopy Create free account
hub / github.com/brimdata/super / errIsStatus

Function errIsStatus

api/client/connection.go:174–177  ·  view source on GitHub ↗
(err error, code int)

Source from the content-addressed store, hash-verified

172}
173
174func errIsStatus(err error, code int) bool {
175 var errRes *ErrorResponse
176 return errors.As(err, &errRes) && errRes.StatusCode == code
177}
178
179func (c *Connection) NewRequest(ctx context.Context, method, path string, body any) *Request {
180 req := newRequest(ctx, c.hostURL, c.defaultHeader.Clone())

Callers 5

PoolStatsMethod · 0.85
BranchGetMethod · 0.85
CreatePoolMethod · 0.85
RemovePoolMethod · 0.85
CreateBranchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected