mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
add http status code
This commit is contained in:
parent
fd08dc72bd
commit
cdbcf0db76
2 changed files with 26 additions and 12 deletions
|
@ -36,7 +36,7 @@ namespace util
|
|||
std::vector<header> headers;
|
||||
std::string content;
|
||||
|
||||
std::vector<boost::asio::const_buffer> to_buffers();
|
||||
std::vector<boost::asio::const_buffer> to_buffers (int status);
|
||||
};
|
||||
|
||||
public:
|
||||
|
@ -53,7 +53,7 @@ namespace util
|
|||
void HandleStreamReceive (const boost::system::error_code& ecode, std::size_t bytes_transferred);
|
||||
void HandleWriteReply(const boost::system::error_code& ecode);
|
||||
void HandleWrite (const boost::system::error_code& ecode);
|
||||
void SendReply (const std::string& content);
|
||||
void SendReply (const std::string& content, int status = 200);
|
||||
|
||||
void HandleRequest ();
|
||||
void FillContent (std::stringstream& s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue