Method: Mongrel::HttpParser#finish

Defined in:
ext/http11/http11.c

#finishObject

Finishes a parser early which could put in a “good” or bad state. You should call reset after finish it or bad things will happen.



261
262
263
264
265
266
267
268
# File 'ext/http11/http11.c', line 261

VALUE HttpParser_finish(VALUE self)
{
  http_parser *http = NULL;
  DATA_GET(self, http_parser, http);
  http_parser_finish(http);

  return http_parser_is_finished(http) ? Qtrue : Qfalse;
}