Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
seastar::json::json_void Struct Reference

Detailed Description

There are cases where a json request needs to return a successful empty reply. The json_void class will be used to mark that the reply should be empty.

#include <seastar/json/json_elements.hh>

Inheritance diagram for seastar::json::json_void:
seastar::json::jsonable

Public Member Functions

virtual std::string to_json () const
 
virtual future write (output_stream< char > &s) const
 write to an output stream More...
 

Member Function Documentation

◆ to_json()

virtual std::string seastar::json::json_void::to_json ( ) const
inlinevirtual

create a formatted string of the object.

Returns
the object formated.

Implements seastar::json::jsonable.

◆ write()

virtual future seastar::json::json_void::write ( output_stream< char > &  s) const
inlinevirtual

write to an output stream

Reimplemented from seastar::json::jsonable.


The documentation for this struct was generated from the following file: