Added size_t Response::size().
This commit is contained in:
parent
9e6b01eed1
commit
e6e52f0c46
1 changed files with 4 additions and 0 deletions
|
|
@ -37,6 +37,10 @@ namespace SimpleWeb {
|
|||
public:
|
||||
std::ostream stream;
|
||||
|
||||
size_t size() {
|
||||
return streambuf.size();
|
||||
}
|
||||
|
||||
template <class T>
|
||||
Response& operator<<(const T& t) {
|
||||
stream << t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue