MCPcopy
hub / github.com/kserve/kserve / getOrCreateID

Function getOrCreateID

pkg/logger/handler.go:210–216  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

208}
209
210func getOrCreateID(r *http.Request) string {
211 id := r.Header.Get(CloudEventsIdHeader)
212 if id == "" {
213 id = guuid.New().String()
214 }
215 return id
216}

Callers 1

ServeHTTPMethod · 0.85

Calls 2

GetMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected