merge chunked responses

This commit is contained in:
orignal 2014-12-22 21:20:39 -05:00
parent 325117114a
commit 3f314d8355
4 changed files with 51 additions and 6 deletions

2
util.h
View file

@ -3,6 +3,7 @@
#include <map>
#include <string>
#include <iostream>
#include <boost/asio.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
@ -45,6 +46,7 @@ namespace util
const char TRANSFER_ENCODING[] = "Transfer-Encoding";
std::string httpRequest(const std::string& address);
void MergeChunkedResponse (std::istream& response, std::ostream& merged);
int httpRequestViaI2pProxy(const std::string& address, std::string &content); // return http code
struct url {