example_clock building and working
This commit is contained in:
20
stream.h
Normal file
20
stream.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "firecgi/request.h"
|
||||
|
||||
namespace firesse {
|
||||
|
||||
class Stream {
|
||||
public:
|
||||
Stream(std::unique_ptr<firecgi::Request> request);
|
||||
|
||||
[[nodiscard]] bool WriteEvent(const std::string& data, uint64_t id=0, const std::string& type="");
|
||||
bool End();
|
||||
|
||||
private:
|
||||
std::unique_ptr<firecgi::Request> request_;
|
||||
};
|
||||
|
||||
} // namespace firesse
|
||||
Reference in New Issue
Block a user