id property

String get id

An identity for the request.

This is commonly used in log messages:

myLog.info('[${req.id}] something happened');

Note: the value is a String, because its value is the Server.id from the server (which is a String) concatenated with the request number. By default, the server ID is the empty string, so this value looks like a number even though it is a String. But the application can set the Server.id to a non-empty String.

Implementation

String get id => _id;