example_clock building and working

This commit is contained in:
flamingcow
2019-05-05 00:11:57 -07:00
commit ee2667bb1a
9 changed files with 154 additions and 0 deletions

20
stream.h Normal file
View 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