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

#include <json_body.h>

Public Types

using const_buffers_type = DynamicBufferType::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 DynamicBufferType = boost::beast::multi_buffer

Private Attributes

DynamicBufferType buffer_

Detailed Description

Definition at line 26 of file json_body.h.

Member Typedef Documentation

◆ DynamicBufferType

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

Definition at line 28 of file json_body.h.

◆ const_buffers_type

using xrpl::JsonBody::reader::const_buffers_type = DynamicBufferType::const_buffers_type

Definition at line 34 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 40 of file json_body.h.

Member Function Documentation

◆ init()

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

Definition at line 49 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 56 of file json_body.h.

◆ finish()

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

Definition at line 62 of file json_body.h.

Member Data Documentation

◆ buffer_

DynamicBufferType xrpl::JsonBody::reader::buffer_
private

Definition at line 30 of file json_body.h.