xrpld
Loading...
Searching...
No Matches
xrpl::JsonBody::reader Class Reference

#include <json_body.h>

Public Types

using const_buffers_type = dynamic_buffer_type::const_buffers_type
using is_deferred = std::false_type

Public Member Functions

template<bool IsRequest, class Fields>
 reader (boost::beast::http::message< IsRequest, JsonBody, Fields > const &m)
void init (boost::beast::error_code &) noexcept
boost::optional< std::pair< const_buffers_type, bool > > get (boost::beast::error_code &ec)
void finish (boost::beast::error_code &)

Private Types

using dynamic_buffer_type = boost::beast::multi_buffer

Private Attributes

dynamic_buffer_type buffer_

Detailed Description

Definition at line 18 of file json_body.h.

Member Typedef Documentation

◆ dynamic_buffer_type

using xrpl::JsonBody::reader::dynamic_buffer_type = boost::beast::multi_buffer
private

Definition at line 20 of file json_body.h.

◆ const_buffers_type

using xrpl::JsonBody::reader::const_buffers_type = dynamic_buffer_type::const_buffers_type

Definition at line 25 of file json_body.h.

◆ is_deferred

Constructor & Destructor Documentation

◆ reader()

template<bool IsRequest, class Fields>
xrpl::JsonBody::reader::reader ( boost::beast::http::message< IsRequest, JsonBody, Fields > const & m)
explicit

Definition at line 30 of file json_body.h.

Member Function Documentation

◆ init()

void xrpl::JsonBody::reader::init ( boost::beast::error_code & )
noexcept

Definition at line 39 of file json_body.h.

◆ get()

boost::optional< std::pair< const_buffers_type, bool > > xrpl::JsonBody::reader::get ( boost::beast::error_code & ec)

Definition at line 46 of file json_body.h.

◆ finish()

void xrpl::JsonBody::reader::finish ( boost::beast::error_code & )

Definition at line 52 of file json_body.h.

Member Data Documentation

◆ buffer_

dynamic_buffer_type xrpl::JsonBody::reader::buffer_
private

Definition at line 22 of file json_body.h.