MCPcopy
hub / github.com/caddyserver/caddy / Equal

Method Equal

modules/caddyhttp/celmatcher.go:311–316  ·  view source on GitHub ↗
(other ref.Val)

Source from the content-addressed store, hash-verified

309}
310
311func (cr celHTTPRequest) Equal(other ref.Val) ref.Val {
312 if o, ok := other.Value().(celHTTPRequest); ok {
313 return types.Bool(o.Request == cr.Request)
314 }
315 return types.ValOrErr(other, "%v is not comparable type", other)
316}
317func (celHTTPRequest) Type() ref.Type { return httpRequestCELType }
318func (cr celHTTPRequest) Value() any { return cr }
319

Callers

nothing calls this directly

Calls 2

ValueMethod · 0.45
BoolMethod · 0.45

Tested by

no test coverage detected