9#include <unordered_map>
17 unordered_map<http2::StreamId, std::shared_ptr<ccf::http::HTTPResponder>>;
28 std::unique_lock<ccf::pal::Mutex> guard(
lock);
32 auto& by_stream = conn_it->second;
33 auto stream_it = by_stream.find(stream_id);
34 if (stream_it != by_stream.end())
36 return stream_it->second;
46 std::shared_ptr<ccf::http::HTTPResponder> responder)
48 std::unique_lock<ccf::pal::Mutex> guard(
lock);
54 std::unique_lock<ccf::pal::Mutex> guard(
lock);
Definition responder_lookup.h:14
ccf::pal::Mutex lock
Definition responder_lookup.h:22
void cleanup_responders(::tcp::ConnID session_id)
Definition responder_lookup.h:52
std::unordered_map<::tcp::ConnID, ByStream > all_responders
Definition responder_lookup.h:19
std::shared_ptr< ccf::http::HTTPResponder > lookup_responder(::tcp::ConnID session_id, http2::StreamId stream_id)
Definition responder_lookup.h:25
void add_responder(::tcp::ConnID session_id, http2::StreamId stream_id, std::shared_ptr< ccf::http::HTTPResponder > responder)
Definition responder_lookup.h:43
std::unordered_map< http2::StreamId, std::shared_ptr< ccf::http::HTTPResponder > > ByStream
Definition responder_lookup.h:17
std::mutex Mutex
Definition locking.h:12
int32_t StreamId
Definition http2_types.h:21
Definition error_reporter.h:6
int64_t ConnID
Definition msg_types.h:9