Line data Source code
1 : #ifndef THINGER_HTTP_FRAME_HPP
2 : #define THINGER_HTTP_FRAME_HPP
3 :
4 : #include "../data/out_data.hpp"
5 :
6 : namespace thinger::http {
7 :
8 : class http_frame : public data::out_data {
9 : public:
10 : // constructors
11 3969 : http_frame() = default;
12 3978 : ~http_frame() override = default;
13 :
14 : // stream information
15 : void set_last_frame(bool last_frame);
16 : virtual bool end_stream();
17 :
18 : // debug
19 : virtual void log(const char* scope, int level) const;
20 :
21 : private:
22 : bool last_frame_ = true;
23 :
24 : };
25 :
26 : }
27 :
28 : #endif
|