Kagome
Polkadot Runtime Engine in C++17
|
#include <jrpc_handle_batch.hpp>
Public Member Functions | |
JrpcHandleBatch (jsonrpc::Server &handler, std::string_view request) | |
std::string_view | response () const |
Private Attributes | |
std::shared_ptr< jsonrpc::FormattedData > | formatted_ |
std::string | batch_ |
Handles single or batch requests.
Definition at line 21 of file jrpc_handle_batch.hpp.
kagome::api::JrpcHandleBatch::JrpcHandleBatch | ( | jsonrpc::Server & | handler, |
std::string_view | request | ||
) |
Construct response for single or batch request.
Definition at line 94 of file jrpc_handle_batch.cpp.
std::string_view kagome::api::JrpcHandleBatch::response | ( | ) | const |
Get response.
Definition at line 123 of file jrpc_handle_batch.cpp.
|
private |
Combined batch responses buffer.
Definition at line 41 of file jrpc_handle_batch.hpp.
|
private |
Single response buffer returned by jsonrpc::Server::HandleRequest
.
Definition at line 37 of file jrpc_handle_batch.hpp.