ladybird/Libraries/LibRequests/Forward.h
Andreas Kling 54d2395a03 LibWeb: Preserve file-backed HTTP cache bodies
Carry response chunks through LibRequests and ResourceLoader as a
ResponseData wrapper. A disk cache hit can retain its mapped storage,
while ordinary streamed chunks still use borrowed bytes.

Store completed memory cache entries as Core::ImmutableBytes. This lets
mapped disk-cache responses stay file-backed while retained by the HTTP
memory cache, instead of forcing another ByteBuffer copy.
2026-05-16 08:13:35 +02:00

17 lines
248 B
C++

/*
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Requests {
class Request;
class RequestClient;
class ResponseData;
class WebSocket;
struct RequestTimingInfo;
}