Method: Thin::HttpParser#reset
- Defined in:
- ext/thin_parser/thin.c
#reset ⇒ nil
Resets the parser to it’s initial state so that you can reuse it rather than making new ones.
271 272 273 274 275 276 277 278 |
# File 'ext/thin_parser/thin.c', line 271 VALUE Thin_HttpParser_reset(VALUE self) { http_parser *http = NULL; DATA_GET(self, http_parser, http); thin_http_parser_init(http); return Qnil; } |