rippled
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
ripple::json_body::reader Class Reference

Public Types

using const_buffers_type = typename 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, json_body, 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 38 of file json_body.h.

Member Typedef Documentation

◆ dynamic_buffer_type

using ripple::json_body::reader::dynamic_buffer_type = boost::beast::multi_buffer
private

Definition at line 40 of file json_body.h.

◆ const_buffers_type

using ripple::json_body::reader::const_buffers_type = typename dynamic_buffer_type::const_buffers_type

Definition at line 46 of file json_body.h.

◆ is_deferred

Definition at line 48 of file json_body.h.

Constructor & Destructor Documentation

◆ reader()

template<bool isRequest, class Fields >
ripple::json_body::reader::reader ( boost::beast::http::message< isRequest, json_body, Fields > const &  m)
explicit

Definition at line 51 of file json_body.h.

Member Function Documentation

◆ init()

void ripple::json_body::reader::init ( boost::beast::error_code &  )
noexcept

Definition at line 61 of file json_body.h.

◆ get()

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

Definition at line 68 of file json_body.h.

◆ finish()

void ripple::json_body::reader::finish ( boost::beast::error_code &  )

Definition at line 74 of file json_body.h.

Member Data Documentation

◆ buffer_

dynamic_buffer_type ripple::json_body::reader::buffer_
private

Definition at line 42 of file json_body.h.