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

Function ensureBodyReadTimeout

huma.go:1387–1391  ·  view source on GitHub ↗

ensureBodyReadTimeout sets the BodyReadTimeout to a default value if it was unset.

(op *Operation)

Source from the content-addressed store, hash-verified

1385
1386// ensureBodyReadTimeout sets the BodyReadTimeout to a default value if it was unset.
1387func ensureBodyReadTimeout(op *Operation) {
1388 if op.BodyReadTimeout == 0 {
1389 op.BodyReadTimeout = 5 * time.Second
1390 }
1391}
1392
1393// setRequestBodyFromBody configures op.RequestBody from the Body field.
1394func setRequestBodyFromBody(op *Operation, registry Registry, fBody reflect.StructField, inputType reflect.Type) {

Callers 1

processInputTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…