title: How to find bytes_in in Nginx?
body: <p>I am using this module <a href="https://github.com/Lax/ngx_http_accounting_module" rel="nofollow">https://github.com/Lax/ngx_http_accounting_module</a> for accounting nginx request count and byte out</p>
  
  <p>I can see bytes_out is used in code and is working fine . </p>
  
  <p>code snippet:
  ngx_http_accounting_handler(ngx_http_request_t *r){
  ..
  stats->bytes_out += r->connection->sent;
  }</p>
  
  <p>But how to calculate bytes_in? any clue? I checked ngx_http_request_s &amp; ngx_connection_s which has 'sent' data but not the receive data. Any suggestion would be really helpful</p>
  
  <p>Thanks</p>