()
| 296 | } |
| 297 | |
| 298 | func (c *genericCombiner[R]) shouldQuit() bool { |
| 299 | if c.httpStatusCode/100 == 5 { // Bail on 5xx |
| 300 | return true |
| 301 | } |
| 302 | |
| 303 | if c.httpStatusCode/100 == 4 { // Bail on 4xx |
| 304 | return true |
| 305 | } |
| 306 | |
| 307 | if c.quit != nil && c.quit(c.current) { |
| 308 | return true |
| 309 | } |
| 310 | |
| 311 | // 2xx |
| 312 | return false |
| 313 | } |
| 314 | |
| 315 | func (c *genericCombiner[T]) internalMarshalAs(final T) ([]byte, string, error) { |
| 316 | var bodyBytes []byte |
no outgoing calls
no test coverage detected