MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / StartRequest

Function StartRequest

errorreport/errorreport.go:68–71  ·  view source on GitHub ↗

StartRequest initializes metadata storage in the request context.

(req *http.Request)

Source from the content-addressed store, hash-verified

66
67// StartRequest initializes metadata storage in the request context.
68func StartRequest(req *http.Request) context.Context {
69 meta := make(map[string]any)
70 return context.WithValue(req.Context(), metaCtxKey{}, meta)
71}
72
73// SetMetadata sets a metadata key-value pair in the request context.
74func SetMetadata(req *http.Request, key string, value any) {

Callers 1

WithReportErrorMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected