Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
MessageHandler.hpp
1#pragma once
2
3#include "web/SubscriptionContextInterface.hpp"
4#include "web/ng/Connection.hpp"
5#include "web/ng/Request.hpp"
6#include "web/ng/Response.hpp"
7
8#include <boost/asio/spawn.hpp>
9
10#include <functional>
11
12namespace web::ng {
13
17using MessageHandler = std::function<Response(
18 Request const&,
21 boost::asio::yield_context
22)>;
23
24} // namespace web::ng
An interface for a connection metadata class.
Definition Connection.hpp:25
Represents an HTTP or WebSocket request.
Definition Request.hpp:18
Represents an HTTP or Websocket response.
Definition Response.hpp:21
std::shared_ptr< SubscriptionContextInterface > SubscriptionContextPtr
An alias for shared pointer to a SubscriptionContextInterface.
Definition SubscriptionContextInterface.hpp:64