MCPcopy
hub / github.com/connectrpc/connect-go / IsNotModifiedError

Function IsNotModifiedError

error.go:258–260  ·  view source on GitHub ↗

IsNotModifiedError checks whether the supplied error indicates that the requested resource hasn't changed. It only returns true if the server used [NewNotModifiedError] in response to a Connect-protocol RPC made with an HTTP GET.

(err error)

Source from the content-addressed store, hash-verified

256// [NewNotModifiedError] in response to a Connect-protocol RPC made with an
257// HTTP GET.
258func IsNotModifiedError(err error) bool {
259 return errors.Is(err, errNotModified)
260}
261
262// errorf calls fmt.Errorf with the supplied template and arguments, then wraps
263// the resulting error.

Callers 4

TestGetNotModifiedFunction · 0.92
validateResponseMethod · 0.85
CloseMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestGetNotModifiedFunction · 0.74