ghttp_parser_reset()

ghttp_parser_reset()#

Resets the internal state of a GHTTP_PARSER structure, clearing accumulated data such as headers, body, and URL.

Prototype

void ghttp_parser_reset(GHTTP_PARSER *parser);

Parameters

Key

Type

Description

parser

GHTTP_PARSER *

Pointer to the GHTTP_PARSER structure to reset.


Return Value

This function does not return a value.

Notes

This function should be called before reusing a GHTTP_PARSER instance to ensure a clean state.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples