1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

bugfixes + doc update

This commit is contained in:
ton 2020-02-08 23:24:24 +04:00
parent 77842f9b63
commit 1de39f5d7c
44 changed files with 652 additions and 272 deletions

View file

@ -119,6 +119,12 @@ class HttpPayload {
bool high_watermark_reached() const {
return ready_bytes_ > high_watermark_;
}
bool is_error() const {
return error_;
}
void set_error() {
error_ = true;
}
PayloadType payload_type() const {
return type_;
}
@ -152,6 +158,7 @@ class HttpPayload {
size_t chunk_size_ = 1 << 14;
bool written_zero_chunk_ = false;
bool written_trailer_ = false;
bool error_ = false;
std::list<std::unique_ptr<Callback>> callbacks_;