Kagome
Polkadot Runtime Engine in C++17
kagome::api::JrpcHandleBatch Class Reference

#include <jrpc_handle_batch.hpp>

Collaboration diagram for kagome::api::JrpcHandleBatch:

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_
 

Detailed Description

Handles single or batch requests.

Definition at line 21 of file jrpc_handle_batch.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

std::string_view kagome::api::JrpcHandleBatch::response ( ) const

Get response.

Definition at line 123 of file jrpc_handle_batch.cpp.

Member Data Documentation

std::string kagome::api::JrpcHandleBatch::batch_
private

Combined batch responses buffer.

Definition at line 41 of file jrpc_handle_batch.hpp.

std::shared_ptr<jsonrpc::FormattedData> kagome::api::JrpcHandleBatch::formatted_
private

Single response buffer returned by jsonrpc::Server::HandleRequest.

Definition at line 37 of file jrpc_handle_batch.hpp.


The documentation for this class was generated from the following files: