The server adds request information to state.req.
function handler(state) {
var req = state.req
return {
id: req.id,
count: req.count,
path: req.pathname,
query: req.query,
language: req.lang,
host: req.host,
protocol: req.proto,
url: req.href,
ip: req.ip
}
}
count is per process. Host, protocol, and IP can come from request or proxy headers.
Next: Shared data →