summaryrefslogtreecommitdiff
path: root/http_connection.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 23:10:13 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 23:10:13 +0100
commitea754365e607c7c36d00909ea7605daeaa64243c (patch)
tree59a5a53bcb8cefb95af3848265cc4187a80cba10 /http_connection.h
parentb429cd906e2fcaf96e6ed84d7a1b85b582330a13 (diff)
Added send_data(istream).
Diffstat (limited to 'http_connection.h')
-rw-r--r--http_connection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/http_connection.h b/http_connection.h
index 446f0af..e3a3721 100644
--- a/http_connection.h
+++ b/http_connection.h
@@ -5,6 +5,7 @@
#include <vector>
#include <list>
#include <map>
+#include <istream>
#include <boost/asio.hpp>
#include <boost/enable_shared_from_this.hpp>
@@ -51,6 +52,7 @@ namespace HTTP {
//! Send data.
void send_data(const std::string& data);
void send_data(const void* data, std::size_t size);
+ void send_data(std::istream& stream);
private:
typedef std::vector<std::pair<std::string, std::string> > HeaderList;