1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibHTTP: Store Content-Length value in the HTTP Job class

This way we can save some calculations, but more importantly this will
also be needed in next commits. :P
This commit is contained in:
Karol Kosek 2021-10-16 20:17:18 +02:00 committed by Andreas Kling
parent 71f663b205
commit a7e7cb0e70
Notes: sideshowbarker 2024-07-18 08:59:31 +09:00
2 changed files with 8 additions and 12 deletions

View file

@ -60,6 +60,7 @@ protected:
size_t m_buffered_size { 0 };
size_t m_received_size { 0 };
bool m_sent_data { 0 };
Optional<u32> m_content_length;
Optional<ssize_t> m_current_chunk_remaining_size;
Optional<size_t> m_current_chunk_total_size;
bool m_can_stream_response { true };