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:
parent
71f663b205
commit
a7e7cb0e70
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/krkk
Commit: a7e7cb0e70
Pull-request: https://github.com/SerenityOS/serenity/pull/10595
Reviewed-by: https://github.com/alimpfard
2 changed files with 8 additions and 12 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue