Method: Mongrel::HttpParser#reset

Defined in:
ext/http11/http11.c

#resetnil

Resets the parser to it’s initial state so that you can reuse it rather than making new ones.

Returns:

  • (nil)


244
245
246
247
248
249
250
251
# File 'ext/http11/http11.c', line 244

VALUE HttpParser_reset(VALUE self)
{
  http_parser *http = NULL;
  DATA_GET(self, http_parser, http);
  http_parser_init(http);

  return Qnil;
}