Method: Mongrel::HttpParser#nread

Defined in:
ext/http11/http11.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)


356
357
358
359
360
361
362
# File 'ext/http11/http11.c', line 356

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

  return INT2FIX(http->nread);
}