HTTP library usability improvements.

This commit is contained in:
Thulinma 2013-08-23 00:04:38 +02:00
parent baeacc6d9e
commit ca07e477fe
2 changed files with 46 additions and 19 deletions

View file

@ -28,7 +28,8 @@ namespace HTTP {
std::string & BuildResponse(std::string code, std::string message);
void SendRequest(Socket::Connection & conn);
void SendResponse(std::string code, std::string message, Socket::Connection & conn);
void Chunkify(std::string & bodypart);
void StartResponse(std::string code, std::string message, Parser & request, Socket::Connection & conn);
void StartResponse(Parser & request, Socket::Connection & conn);
void Chunkify(std::string & bodypart, Socket::Connection & conn);
void Chunkify(const char * data, unsigned int size, Socket::Connection & conn);
void Proxy(Socket::Connection & from, Socket::Connection & to);