summaryrefslogtreecommitdiff
path: root/http/http_response.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-06-01 17:33:34 +0300
committerEd Tanous <ed@tanous.net>2023-06-01 23:43:11 +0300
commit6fde95fad082fa7d6fc54f2ef8584e06fb116d42 (patch)
tree31865ca598fcb00af96d5d33824cf53ae1df4f36 /http/http_response.hpp
parent88ada3bc05ea247b6c8a24db49ebfdd268c17f4d (diff)
downloadbmcweb-6fde95fad082fa7d6fc54f2ef8584e06fb116d42.tar.xz
Server-sent-event fixes
This makes several changes to server-sent events to allow it to merge to master. The routing system has been removed in leiu of using content-type eventstream detection. Timers have been added to the sse connections, and sse connections now rely on async_wait, rather than a full read. Tested: WIP Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Id0ff0ebc2b3a795b3dba008e440556a9fdd882c2
Diffstat (limited to 'http/http_response.hpp')
-rw-r--r--http/http_response.hpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/http/http_response.hpp b/http/http_response.hpp
index 06b693915f..1a4ef16d4e 100644
--- a/http/http_response.hpp
+++ b/http/http_response.hpp
@@ -16,18 +16,10 @@ namespace crow
template <typename Adaptor, typename Handler>
class Connection;
-namespace sse_socket
-{
-template <typename Adaptor>
-class ConnectionImpl;
-} // namespace sse_socket
-
struct Response
{
template <typename Adaptor, typename Handler>
friend class crow::Connection;
- template <typename Adaptor>
- friend class crow::sse_socket::ConnectionImpl;
using response_type =
boost::beast::http::response<boost::beast::http::string_body>;