MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / http_parser_pause

Function http_parser_pause

libs/qhttpserver/http-parser/http_parser.c:2405–2417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2403}
2404
2405void
2406http_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
2419int
2420http_body_is_final(const struct http_parser *parser) {

Callers 11

pause_message_begin_cbFunction · 0.85
pause_header_field_cbFunction · 0.85
pause_header_value_cbFunction · 0.85
pause_request_url_cbFunction · 0.85
pause_body_cbFunction · 0.85
pause_response_status_cbFunction · 0.85
pause_chunk_header_cbFunction · 0.85
pause_chunk_complete_cbFunction · 0.85
test_message_pauseFunction · 0.85

Calls

no outgoing calls

Tested by 11

pause_message_begin_cbFunction · 0.68
pause_header_field_cbFunction · 0.68
pause_header_value_cbFunction · 0.68
pause_request_url_cbFunction · 0.68
pause_body_cbFunction · 0.68
pause_response_status_cbFunction · 0.68
pause_chunk_header_cbFunction · 0.68
pause_chunk_complete_cbFunction · 0.68
test_message_pauseFunction · 0.68