Class ReplyBuilder

Class Documentation

class async_web_server_cpp::ReplyBuilder

Object to build and send reply headers

Public Functions

ReplyBuilder(HttpReply::status_type status)
ReplyBuilder &header(const std::string &name, const std::string &value)

Add a header to the reply

ReplyBuilder &header(const HttpHeader &header)

Add a header to the reply

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

Add a group of headers to the reply

void write(HttpConnectionPtr connection)

Send the headers over the connection