| 2442 | } |
| 2443 | |
| 2444 | void |
| 2445 | http_parser_pause(http_parser *parser, int paused) { |
| 2446 | /* Users should only be pausing/unpausing a parser that is not in an error |
| 2447 | * state. In non-debug builds, there's not much that we can do about this |
| 2448 | * other than ignore it. |
| 2449 | */ |
| 2450 | if (HTTP_PARSER_ERRNO(parser) == HPE_OK || |
| 2451 | HTTP_PARSER_ERRNO(parser) == HPE_PAUSED) { |
| 2452 | SET_ERRNO((paused) ? HPE_PAUSED : HPE_OK); |
| 2453 | } else { |
| 2454 | assert(0 && "Attempting to pause parser in error state"); |
| 2455 | } |
| 2456 | } |
| 2457 | |
| 2458 | int |
| 2459 | http_body_is_final(const struct http_parser *parser) { |
nothing calls this directly
no outgoing calls
no test coverage detected