| 66 | } |
| 67 | |
| 68 | uint32_t THttpTransport::read(uint8_t* buf, uint32_t len) { |
| 69 | if (readBuffer_.available_read() == 0) { |
| 70 | readBuffer_.resetBuffer(); |
| 71 | uint32_t got = readMoreData(); |
| 72 | if (got == 0) { |
| 73 | return 0; |
| 74 | } |
| 75 | } |
| 76 | return readBuffer_.read(buf, len); |
| 77 | } |
| 78 | |
| 79 | uint32_t THttpTransport::readEnd() { |
| 80 | // Read any pending chunked data (footers etc.) |
no outgoing calls