diff options
Diffstat (limited to 'lib/httpserver/HTTPResponse.h')
-rw-r--r-- | lib/httpserver/HTTPResponse.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/httpserver/HTTPResponse.h b/lib/httpserver/HTTPResponse.h index e4d4fd91..07838cb0 100644 --- a/lib/httpserver/HTTPResponse.h +++ b/lib/httpserver/HTTPResponse.h @@ -28,6 +28,7 @@ class IOStreamGetLine; class HTTPResponse : public CollectInBufferStream { public: + HTTPResponse(IOStream* pStreamToSendTo); HTTPResponse(); ~HTTPResponse(); @@ -46,7 +47,8 @@ public: void SetAsRedirect(const char *RedirectTo, bool IsLocalURI = true); void SetAsNotFound(const char *URI); - void Send(IOStream &rStream, bool OmitContent = false); + void Send(bool OmitContent = false); + void SendContinue(); void Receive(IOStream& rStream, int Timeout = IOStream::TimeOutInfinite); // void AddHeader(const char *EntireHeaderLine); @@ -139,6 +141,7 @@ private: std::string mContentType; std::vector<Header> mExtraHeaders; int mContentLength; // only used when reading response from stream + IOStream* mpStreamToSendTo; // nonzero only when constructed with a stream static std::string msDefaultURIPrefix; |