Guides  ›  References  ›  State properties ← PREV NEXT →

State properties

Each request gets its own state, inheriting the server configuration.

Property Purpose
req, res Native Node request and response
data, page Fresh objects for request and page data
plugins Registered application services
route Selected route after body parsing
result Value sent as the response
err Caught request error
start, end, ms Request timestamps and duration
dev Whether mode is development
timer.values Named operation durations
req.pathname, req.query Exact path and parsed query
req.body Parsed POST object; initially {}
req.lang Selected language
req.id, req.count UUIDv7 and per-process counter
req.host, req.proto, req.href Request URL information
req.ip Forwarded or socket address

Inherited settings include mode, port, languages, and locales. Functions are documented under State helpers and Cookies.

Next: Hook order →

Tools for business systems.