ensureBodyReadTimeout sets the BodyReadTimeout to a default value if it was unset.
(op *Operation)
| 1385 | |
| 1386 | // ensureBodyReadTimeout sets the BodyReadTimeout to a default value if it was unset. |
| 1387 | func 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. |
| 1394 | func setRequestBodyFromBody(op *Operation, registry Registry, fBody reflect.StructField, inputType reflect.Type) { |
no outgoing calls
no test coverage detected
searching dependent graphs…