CCF
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Attributes | List of all members
http::ResponderLookup Class Reference

#include <responder_lookup.h>

Inherited by ccf::RPCSessions.

Public Member Functions

std::shared_ptr< ccf::http::HTTPResponderlookup_responder (::tcp::ConnID session_id, http2::StreamId stream_id)
 
void add_responder (::tcp::ConnID session_id, http2::StreamId stream_id, std::shared_ptr< ccf::http::HTTPResponder > responder)
 
void cleanup_responders (::tcp::ConnID session_id)
 

Protected Types

using ByStream = std::unordered_map< http2::StreamId, std::shared_ptr< ccf::http::HTTPResponder > >
 

Protected Attributes

std::unordered_map<::tcp::ConnID, ByStreamall_responders
 
ccf::pal::Mutex lock
 

Member Typedef Documentation

◆ ByStream

using http::ResponderLookup::ByStream = std:: unordered_map<http2::StreamId, std::shared_ptr<ccf::http::HTTPResponder> >
protected

Member Function Documentation

◆ add_responder()

void http::ResponderLookup::add_responder ( ::tcp::ConnID  session_id,
http2::StreamId  stream_id,
std::shared_ptr< ccf::http::HTTPResponder responder 
)
inline

◆ cleanup_responders()

void http::ResponderLookup::cleanup_responders ( ::tcp::ConnID  session_id)
inline

◆ lookup_responder()

std::shared_ptr< ccf::http::HTTPResponder > http::ResponderLookup::lookup_responder ( ::tcp::ConnID  session_id,
http2::StreamId  stream_id 
)
inline

Member Data Documentation

◆ all_responders

std::unordered_map<::tcp::ConnID, ByStream> http::ResponderLookup::all_responders
protected

◆ lock

ccf::pal::Mutex http::ResponderLookup::lock
protected

The documentation for this class was generated from the following file: