Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
toolbox::http::App Class Referenceabstract

#include <toolbox/http/App.hpp>

Public Types

using Protocol = StreamProtocol
 
using Endpoint = StreamEndpoint
 

Public Member Functions

 App () noexcept=default
 
virtual ~App ()
 
constexpr App (const App &) noexcept=default
 
Appoperator= (const App &) noexcept=default
 
constexpr App (App &&) noexcept=default
 
Appoperator= (App &&) noexcept=default
 
void on_http_connect (CyclTime now, const Endpoint &ep)
 
void on_http_disconnect (CyclTime now, const Endpoint &ep) noexcept
 
void on_http_error (CyclTime now, const Endpoint &ep, const std::exception &e, OStream &os) noexcept
 
void on_http_message (CyclTime now, const Endpoint &ep, const Request &req, OStream &os)
 
void on_http_timeout (CyclTime now, const Endpoint &ep) noexcept
 

Protected Member Functions

virtual void do_on_http_connect (CyclTime now, const Endpoint &ep)=0
 
virtual void do_on_http_disconnect (CyclTime now, const Endpoint &ep) noexcept=0
 
virtual void do_on_http_error (CyclTime now, const Endpoint &ep, const std::exception &e, OStream &os) noexcept=0
 
virtual void do_on_http_message (CyclTime now, const Endpoint &ep, const Request &req, OStream &os)=0
 
virtual void do_on_http_timeout (CyclTime now, const Endpoint &ep) noexcept=0
 

Detailed Description

Definition at line 28 of file App.hpp.

Member Typedef Documentation

◆ Protocol

Definition at line 30 of file App.hpp.

◆ Endpoint

Definition at line 31 of file App.hpp.

Constructor & Destructor Documentation

◆ App() [1/3]

toolbox::http::App::App ( )
defaultnoexcept

◆ ~App()

toolbox::http::App::~App ( )
virtualdefault

◆ App() [2/3]

constexpr toolbox::http::App::App ( const App )
constexprdefaultnoexcept

◆ App() [3/3]

constexpr toolbox::http::App::App ( App &&  )
constexprdefaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

App & toolbox::http::App::operator= ( const App )
defaultnoexcept

◆ operator=() [2/2]

App & toolbox::http::App::operator= ( App &&  )
defaultnoexcept

◆ on_http_connect()

void toolbox::http::App::on_http_connect ( CyclTime  now,
const Endpoint ep 
)
inline

Definition at line 44 of file App.hpp.

◆ on_http_disconnect()

void toolbox::http::App::on_http_disconnect ( CyclTime  now,
const Endpoint ep 
)
inlinenoexcept

Definition at line 45 of file App.hpp.

◆ on_http_error()

void toolbox::http::App::on_http_error ( CyclTime  now,
const Endpoint ep,
const std::exception &  e,
OStream os 
)
inlinenoexcept

Definition at line 49 of file App.hpp.

◆ on_http_message()

void toolbox::http::App::on_http_message ( CyclTime  now,
const Endpoint ep,
const Request req,
OStream os 
)
inline

Definition at line 54 of file App.hpp.

◆ on_http_timeout()

void toolbox::http::App::on_http_timeout ( CyclTime  now,
const Endpoint ep 
)
inlinenoexcept

Definition at line 58 of file App.hpp.

◆ do_on_http_connect()

virtual void toolbox::http::App::do_on_http_connect ( CyclTime  now,
const Endpoint ep 
)
protectedpure virtual

◆ do_on_http_disconnect()

virtual void toolbox::http::App::do_on_http_disconnect ( CyclTime  now,
const Endpoint ep 
)
protectedpure virtualnoexcept

◆ do_on_http_error()

virtual void toolbox::http::App::do_on_http_error ( CyclTime  now,
const Endpoint ep,
const std::exception &  e,
OStream os 
)
protectedpure virtualnoexcept

◆ do_on_http_message()

virtual void toolbox::http::App::do_on_http_message ( CyclTime  now,
const Endpoint ep,
const Request req,
OStream os 
)
protectedpure virtual

◆ do_on_http_timeout()

virtual void toolbox::http::App::do_on_http_timeout ( CyclTime  now,
const Endpoint ep 
)
protectedpure virtualnoexcept

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