MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / writeNumber

Method writeNumber

MonaCore/sources/HTTP/HTTP.cpp:421–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419 }
420 }
421 void writeNumber(double value) {
422 if ((_option <= 2 || value) && writeHeader()) {
423 if (_option == EXPIRES) {
424 string date;
425 writeContent<String>(Date(Time::Now()+(Int64)(value*1000),Date::GMT).toString(Date::RFC1123_FORMAT, date));
426 } else
427 writeContent<String>(value);
428 }
429 _option = NO;
430 }
431
432private:
433

Callers

nothing calls this directly

Calls 1

DateClass · 0.85

Tested by

no test coverage detected