MCPcopy Create free account
hub / github.com/boostorg/beast / http_parser_pause

Function http_parser_pause

test/bench/parser/nodejs-parser/http_parser.c:2444–2456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2442}
2443
2444void
2445http_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
2458int
2459http_body_is_final(const struct http_parser *parser) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected