rippled
Public Types | Public Member Functions | Private Attributes | List of all members
ripple::json_body::writer Class Reference
Collaboration diagram for ripple::json_body::writer:
Collaboration graph
[legend]

Public Types

using const_buffers_type = boost::asio::const_buffer
 

Public Member Functions

template<bool isRequest, class Fields >
 writer (boost::beast::http::header< isRequest, Fields > const &fields, value_type const &value)
 
void init (boost::beast::error_code &ec)
 
boost::optional< std::pair< const_buffers_type, bool > > get (boost::beast::error_code &ec)
 

Private Attributes

std::string body_string_
 

Detailed Description

Definition at line 79 of file json_body.h.

Member Typedef Documentation

◆ const_buffers_type

using ripple::json_body::writer::const_buffers_type = boost::asio::const_buffer

Definition at line 84 of file json_body.h.

Constructor & Destructor Documentation

◆ writer()

template<bool isRequest, class Fields >
ripple::json_body::writer::writer ( boost::beast::http::header< isRequest, Fields > const &  fields,
value_type const &  value 
)
explicit

Definition at line 87 of file json_body.h.

Member Function Documentation

◆ init()

void ripple::json_body::writer::init ( boost::beast::error_code &  ec)

Definition at line 95 of file json_body.h.

◆ get()

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

Definition at line 103 of file json_body.h.

Member Data Documentation

◆ body_string_

std::string ripple::json_body::writer::body_string_
private

Definition at line 81 of file json_body.h.