MCPcopy Create free account
hub / github.com/ddnet/ddnet / ResultAgeSeconds

Method ResultAgeSeconds

src/engine/shared/http.cpp:569–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569std::optional<int64_t> CHttpRequest::ResultAgeSeconds() const
570{
571 dbg_assert(State() == EHttpState::DONE, "Request not done");
572 if(!m_ResultDate || !m_ResultLastModified)
573 {
574 return {};
575 }
576 return *m_ResultDate - *m_ResultLastModified;
577}
578
579std::optional<int64_t> CHttpRequest::ResultLastModified() const
580{

Callers 2

RunMethod · 0.80
UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected