Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
Ping.hpp
1#pragma once
2
3#include "rpc/common/Types.hpp"
4
5namespace rpc {
6
14public:
15 using Output = VoidOutput;
16 using Result = HandlerReturnType<Output>;
17
24 static Result
25 process([[maybe_unused]] Context const& ctx)
26 {
27 return Output{};
28 }
29};
30
31} // namespace rpc
The ping command returns an acknowledgement, so that clients can test the connection status and laten...
Definition Ping.hpp:13
static Result process(Context const &ctx)
Process the Ping command.
Definition Ping.hpp:25
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:18
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:62
Context of an RPC call.
Definition Types.hpp:99
An empty type used as Output for handlers than don't actually produce output.
Definition Types.hpp:94