RESTinio
|
A context for a single response. More...
#include <response_coordinator.hpp>
Public Member Functions | |
void | reinit (request_id_t request_id) noexcept |
Reinitialize context. | |
void | enqueue_group (write_group_t wg) |
Put write group to data queue. | |
bool | empty () const noexcept |
Is context empty. | |
write_group_t | dequeue_group () noexcept |
Extract write group from data queue. | |
auto | request_id () const noexcept |
Get id of associated request. | |
void | response_output_flags (response_output_flags_t flags) noexcept |
Get flags of corrent response data flow. | |
auto | response_output_flags () const noexcept |
Get flags of corrent response data flow. | |
bool | is_complete () const noexcept |
Is response data of a given request is complete. | |
Private Attributes | |
request_id_t | m_request_id { 0 } |
write_groups_container_t | m_write_groups |
Unsent responses parts. | |
response_output_flags_t | m_response_output_flags |
Response flags. | |
Friends | |
write_groups_container_t & | utest_access (response_context_t &ctx) |
Access write-groups container (used in unit tests) | |
A context for a single response.
Definition at line 38 of file response_coordinator.hpp.
|
inlinenoexcept |
Extract write group from data queue.
Definition at line 85 of file response_coordinator.hpp.
|
inlinenoexcept |
Is context empty.
Definition at line 81 of file response_coordinator.hpp.
|
inline |
Put write group to data queue.
Definition at line 63 of file response_coordinator.hpp.
|
inlinenoexcept |
Is response data of a given request is complete.
Definition at line 133 of file response_coordinator.hpp.
|
inlinenoexcept |
Reinitialize context.
request_id | New request id. |
Definition at line 50 of file response_coordinator.hpp.
|
inlinenoexcept |
Get id of associated request.
Definition at line 115 of file response_coordinator.hpp.
|
inlinenoexcept |
Get flags of corrent response data flow.
Definition at line 126 of file response_coordinator.hpp.
|
inlinenoexcept |
Get flags of corrent response data flow.
Definition at line 119 of file response_coordinator.hpp.
|
friend |
Access write-groups container (used in unit tests)
Definition at line 43 of file response_coordinator.hpp.
|
private |
Definition at line 141 of file response_coordinator.hpp.
|
private |
Response flags.
Definition at line 148 of file response_coordinator.hpp.
|
private |
Unsent responses parts.
Definition at line 144 of file response_coordinator.hpp.