userver
C++ Async Framework
Loading...
Searching...
No Matches
samples/testsuite-support/src/now.cpp
#include "now.hpp"
#include <
userver/utils/datetime.hpp
>
namespace
tests::handlers {
formats::json::Value
Now::HandleRequestJsonThrow(
[[maybe_unused]]
const
server::http::HttpRequest
& request,
[[maybe_unused]]
const
formats::json::Value
& request_body,
[[maybe_unused]]
server::request::RequestContext
& context)
const
{
formats::json::ValueBuilder
result;
result[
"now"
] =
utils::datetime::Now
();
return
result.
ExtractValue
();
}
}
// namespace tests::handlers
Generated on Wed May 15 2024 22:13:58 for userver by
Doxygen
1.10.0