| 2403 | } |
| 2404 | |
| 2405 | void |
| 2406 | http_parser_pause(http_parser *parser, int paused) { |
| 2407 | /* Users should only be pausing/unpausing a parser that is not in an error |
| 2408 | * state. In non-debug builds, there's not much that we can do about this |
| 2409 | * other than ignore it. |
| 2410 | */ |
| 2411 | if (HTTP_PARSER_ERRNO(parser) == HPE_OK || |
| 2412 | HTTP_PARSER_ERRNO(parser) == HPE_PAUSED) { |
| 2413 | SET_ERRNO((paused) ? HPE_PAUSED : HPE_OK); |
| 2414 | } else { |
| 2415 | assert(0 && "Attempting to pause parser in error state"); |
| 2416 | } |
| 2417 | } |
| 2418 | |
| 2419 | int |
| 2420 | http_body_is_final(const struct http_parser *parser) { |
no outgoing calls