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

#include <json_body.h>

Collaboration diagram for xrpl::JsonBody::writer:

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)
boost::optional< std::pair< const_buffers_type, bool > > get (boost::beast::error_code &ec)

Static Public Member Functions

static void init (boost::beast::error_code &ec)

Private Attributes

std::string bodyString_

Detailed Description

Definition at line 57 of file json_body.h.

Member Typedef Documentation

◆ const_buffers_type

using xrpl::JsonBody::writer::const_buffers_type = boost::asio::const_buffer

Definition at line 62 of file json_body.h.

Constructor & Destructor Documentation

◆ writer()

template<bool IsRequest, class Fields>
xrpl::JsonBody::writer::writer ( boost::beast::http::header< IsRequest, Fields > const & fields,
value_type const & value )
explicit

Definition at line 65 of file json_body.h.

Member Function Documentation

◆ init()

void xrpl::JsonBody::writer::init ( boost::beast::error_code & ec)
static

Definition at line 73 of file json_body.h.

◆ get()

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

Definition at line 81 of file json_body.h.

Member Data Documentation

◆ bodyString_

std::string xrpl::JsonBody::writer::bodyString_
private

Definition at line 59 of file json_body.h.