NAME
netpeek(3)
SYNOPSIS
Find out how many bytes get sent over the network without using c++
.
USAGE
Netpeek can also take an option { aggregate: true }
if you want to add all the
bytes together instead of emitting them each time data is collected. Once Netpeek
is required, it will start collecting data from anywhere in your application.
var netpeek = ;var assert = ; ; netpeek;
EXAMPLES
Output data is json.
The following code (test/tests/http-request-aggregate.js) produced the output above.
var http = ; var options = hostname: 'www.google.com' port: 80 path: '/upload' method: 'POST'; var req = http; req; req;req;req;