mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-11 16:46:51 +02:00
* HTTPServer.{cpp,h}: extract html-rendering methods from class
This commit is contained in:
parent
0c8fdfca7d
commit
4d98a64000
2 changed files with 367 additions and 383 deletions
16
HTTPServer.h
16
HTTPServer.h
|
@ -29,22 +29,6 @@ namespace http {
|
|||
void HandlePage (std::stringstream& s, const std::string& request);
|
||||
void HandleCommand (std::stringstream& s, const std::string& request);
|
||||
|
||||
/* pages */
|
||||
void ShowJumpServices (std::stringstream& s, const std::string& address);
|
||||
void ShowTransports (std::stringstream& s);
|
||||
void ShowTunnels (std::stringstream& s);
|
||||
void ShowStatus (std::stringstream& s);
|
||||
void ShowTransitTunnels (std::stringstream& s);
|
||||
void ShowLocalDestinations (std::stringstream& s);
|
||||
void ShowLocalDestination (std::stringstream& s, const std::string& b32);
|
||||
void ShowSAMSessions (std::stringstream& s);
|
||||
void ShowSAMSession (std::stringstream& s, const std::string& id);
|
||||
void ShowI2PTunnels (std::stringstream& s);
|
||||
/* commands */
|
||||
void StartAcceptingTunnels (std::stringstream& s);
|
||||
void StopAcceptingTunnels (std::stringstream& s);
|
||||
void RunPeerTest (std::stringstream& s);
|
||||
|
||||
private:
|
||||
|
||||
std::shared_ptr<boost::asio::ip::tcp::socket> m_Socket;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue