mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibWeb: Make HeaderList ref-counted
This is needed to eventually share a header list between a Request or Response object's internal infra request/response and the object's exposed Header object.
This commit is contained in:
parent
2d57d47132
commit
afe2563e2b
8 changed files with 61 additions and 46 deletions
|
@ -26,7 +26,9 @@ struct Header {
|
|||
|
||||
// https://fetch.spec.whatwg.org/#concept-header-list
|
||||
// A header list is a list of zero or more headers. It is initially the empty list.
|
||||
class HeaderList final : Vector<Header> {
|
||||
class HeaderList final
|
||||
: public RefCounted<HeaderList>
|
||||
, Vector<Header> {
|
||||
public:
|
||||
using Vector::begin;
|
||||
using Vector::end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue