add method
Adds a new HTTPLoggerData instance to the logger.
When adding a new data entry, this method ensures that the total number of stored
entries does not exceed the maxSize. If it does, the oldest entry is removed.
data: TheHTTPLoggerDatainstance to be added to the logger.
Implementation
void add(HTTPLoggerData data) {
_data.add(data);
if (_data.length > maxSize) _data.removeAt(0);
}