Skip to content

Commit

Permalink
Add CollectInBufferStream::Write(std::string)
Browse files Browse the repository at this point in the history
Makes it easier to write strongly-typed strings as HTTP responses.
  • Loading branch information
qris committed Nov 14, 2016
1 parent 546c0d0 commit 80735e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/common/CollectInBufferStream.h
Expand Up @@ -42,6 +42,11 @@ class CollectInBufferStream : public IOStream
virtual pos_type BytesLeftToRead();
virtual void Write(const void *pBuffer, int NBytes,
int Timeout = IOStream::TimeOutInfinite);
virtual void Write(const std::string& rBuffer,
int Timeout = IOStream::TimeOutInfinite)
{
IOStream::Write(rBuffer, Timeout);
}
virtual pos_type GetPosition() const;
virtual void Seek(pos_type Offset, int SeekType);
virtual bool StreamDataLeft();
Expand Down

0 comments on commit 80735e8

Please sign in to comment.