jaulib v1.3.8
Jau Support Library (C++, Java, ..)
|
Synchronous stream response. More...
#include <io_util.hpp>
Public Member Functions | |
SyncStreamResponse () | |
SyncStreamResponse (net_tk_handle handle_) | |
constexpr_atomic bool | failed () const noexcept |
Stream failed and is aborted, i.e. | |
constexpr_atomic bool | processing () const noexcept |
Stream processing in progress, i.e. | |
constexpr_atomic bool | success () const noexcept |
Stream completed successfully, i.e. | |
Public Attributes | |
uint64_t | content_length |
content_length tracking the content_length | |
net_tk_handle | handle |
used network tookit handle, if owned by caller | |
bool | has_content_length |
indicating whether content_length is known from server | |
url_header_resp | header_resp |
synchronized URL header response completion | |
relaxed_atomic_io_result_t | result |
tracking io_result_t. If set to other than io_result_t::NONE while streaming, streaming is aborted. See failed(), processing() and success() | |
std::vector< uint8_t > | result_data |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc | |
std::string | result_text |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc | |
uint64_t | total_read |
tracking the total_read | |
Synchronous stream response.
Definition at line 247 of file io_util.hpp.
|
inline |
|
inline |
Definition at line 256 of file io_util.hpp.
|
inlinenoexcept |
Stream failed and is aborted, i.e.
io_result_t::FAILED == result
Definition at line 260 of file io_util.hpp.
|
inlinenoexcept |
Stream processing in progress, i.e.
io_result_t::NONE == result
Definition at line 262 of file io_util.hpp.
|
inlinenoexcept |
Stream completed successfully, i.e.
io_result_t::SUCCESS == result
Definition at line 264 of file io_util.hpp.
net_tk_handle jau::io::SyncStreamResponse::handle |
used network tookit handle, if owned by caller
Definition at line 267 of file io_util.hpp.
url_header_resp jau::io::SyncStreamResponse::header_resp |
synchronized URL header response completion
Definition at line 269 of file io_util.hpp.
bool jau::io::SyncStreamResponse::has_content_length |
indicating whether content_length is known from server
Definition at line 271 of file io_util.hpp.
uint64_t jau::io::SyncStreamResponse::content_length |
content_length tracking the content_length
Definition at line 273 of file io_util.hpp.
uint64_t jau::io::SyncStreamResponse::total_read |
tracking the total_read
Definition at line 275 of file io_util.hpp.
relaxed_atomic_io_result_t jau::io::SyncStreamResponse::result |
tracking io_result_t. If set to other than io_result_t::NONE while streaming, streaming is aborted. See failed(), processing() and success()
Definition at line 277 of file io_util.hpp.
std::vector<uint8_t> jau::io::SyncStreamResponse::result_data |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc
Definition at line 279 of file io_util.hpp.
std::string jau::io::SyncStreamResponse::result_text |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc
Definition at line 281 of file io_util.hpp.