MCPcopy
hub / github.com/danielgtaylor/huma / Resolve

Method Resolve

conditional/params.go:47–53  ·  view source on GitHub ↗
(ctx huma.Context)

Source from the content-addressed store, hash-verified

45}
46
47func (p *Params) Resolve(ctx huma.Context) []error {
48 switch ctx.Method() {
49 case http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete:
50 p.isWrite = true
51 }
52 return nil
53}
54
55// HasConditionalParams returns true if any conditional request headers have
56// been set on the incoming request.

Callers 4

TestIfMatchFunction · 0.95
TestIfNoneMatchFunction · 0.95
TestIfModifiedSinceFunction · 0.95
TestIfUnmodifiedSinceFunction · 0.95

Calls 1

MethodMethod · 0.65

Tested by 4

TestIfMatchFunction · 0.76
TestIfNoneMatchFunction · 0.76
TestIfModifiedSinceFunction · 0.76
TestIfUnmodifiedSinceFunction · 0.76