C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
|
An interface: manages an SSE connection and its lifetime. More...
#include <sse_connection.hpp>
Public Member Functions | |
template<typename T > requires (!std::same_as<std::decay_t<T>, sse_connection>) | |
sse_connection (T &&value) | |
bool | canceled () const |
Checks whether the internal operation has been canceled and if true the user must stop all invocations to this object. | |
uri | request_uri () const |
Gets the request URI. | |
abi::string | remote_address () const |
Gets the remote address. | |
void | send_message (const sse_message &message) const |
Sends a message to the client. | |
void | tick () const |
Keep alive and raise an error when the network is disconnected. | |
void | close () const |
Closes the connection. | |
void * | underlying_ptr () const |
Gets the underlying pointer. | |
An interface: manages an SSE connection and its lifetime.
|
inlinenodiscard |
Checks whether the internal operation has been canceled and if true the user must stop all invocations to this object.
|
inlinenodiscard |
Gets the remote address.
|
inlinenodiscard |
Gets the request URI.
|
inlinenodiscard |
Gets the underlying pointer.