Kagome
Polkadot Runtime Engine in C++17
jrpc_handle_batch.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_API_JRPC_HANDLE_BATCH_HPP
7 #define KAGOME_API_JRPC_HANDLE_BATCH_HPP
8 
9 #include <memory>
10 #include <string>
11 
12 namespace jsonrpc {
13  class FormattedData;
14  class Server;
15 } // namespace jsonrpc
16 
17 namespace kagome::api {
22  public:
26  JrpcHandleBatch(jsonrpc::Server &handler, std::string_view request);
27 
31  std::string_view response() const;
32 
33  private:
37  std::shared_ptr<jsonrpc::FormattedData> formatted_;
41  std::string batch_;
42  };
43 } // namespace kagome::api
44 
45 #endif // KAGOME_API_JRPC_HANDLE_BATCH_HPP
std::shared_ptr< jsonrpc::FormattedData > formatted_