Public Member Functions | Private Attributes | List of all members
async_web_server_cpp::ReplyBuilder Class Reference

#include <http_reply.hpp>

Public Member Functions

ReplyBuilderheader (const HttpHeader &header)
 
ReplyBuilderheader (const std::string &name, const std::string &value)
 
ReplyBuilderheaders (const std::vector< HttpHeader > &headers)
 
 ReplyBuilder (HttpReply::status_type status)
 
void write (HttpConnectionPtr connection)
 

Private Attributes

boost::shared_ptr< std::vector< HttpHeader > > headers_
 
HttpReply::status_type status_
 

Detailed Description

Object to build and send reply headers

Definition at line 93 of file http_reply.hpp.

Constructor & Destructor Documentation

◆ ReplyBuilder()

async_web_server_cpp::ReplyBuilder::ReplyBuilder ( HttpReply::status_type  status)

Definition at line 452 of file http_reply.cpp.

Member Function Documentation

◆ header() [1/2]

ReplyBuilder & async_web_server_cpp::ReplyBuilder::header ( const HttpHeader header)

Add a header to the reply

Definition at line 463 of file http_reply.cpp.

◆ header() [2/2]

ReplyBuilder & async_web_server_cpp::ReplyBuilder::header ( const std::string &  name,
const std::string &  value 
)

Add a header to the reply

Definition at line 457 of file http_reply.cpp.

◆ headers()

ReplyBuilder & async_web_server_cpp::ReplyBuilder::headers ( const std::vector< HttpHeader > &  headers)

Add a group of headers to the reply

Definition at line 469 of file http_reply.cpp.

◆ write()

void async_web_server_cpp::ReplyBuilder::write ( HttpConnectionPtr  connection)

Send the headers over the connection

Definition at line 475 of file http_reply.cpp.

Member Data Documentation

◆ headers_

boost::shared_ptr<std::vector<HttpHeader> > async_web_server_cpp::ReplyBuilder::headers_
private

Definition at line 120 of file http_reply.hpp.

◆ status_

HttpReply::status_type async_web_server_cpp::ReplyBuilder::status_
private

Definition at line 119 of file http_reply.hpp.


The documentation for this class was generated from the following files:


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Tue Mar 1 2022 23:49:07