Method: Thin::HttpParser#nread

Defined in:
ext/thin_parser/thin.c

#nreadInteger

Returns the amount of data processed so far during this processing cycle. It is set to 0 on initialize or reset calls and is incremented each time execute is called.

Returns:

  • (Integer)


383
384
385
386
387
388
389
# File 'ext/thin_parser/thin.c', line 383

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

  return INT2FIX(http->nread);
}