mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibWeb/Fetch: Add support for parsing a single range header value
This is a change in the Fetch spec. See: -2d080d7
-a18fb3e
This commit is contained in:
parent
b8e0cec20e
commit
60e9790a40
2 changed files with 39 additions and 27 deletions
|
@ -45,6 +45,11 @@ public:
|
|||
[[nodiscard]] Optional<MimeSniff::MimeType> extract_mime_type() const;
|
||||
};
|
||||
|
||||
struct RangeHeaderValue {
|
||||
Optional<u64> start;
|
||||
Optional<u64> end;
|
||||
};
|
||||
|
||||
[[nodiscard]] ErrorOr<OrderedHashTable<ByteBuffer>> convert_header_names_to_a_sorted_lowercase_set(Span<ReadonlyBytes>);
|
||||
[[nodiscard]] bool is_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_header_value(ReadonlyBytes);
|
||||
|
@ -60,6 +65,6 @@ public:
|
|||
[[nodiscard]] bool is_forbidden_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_forbidden_response_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_request_body_header_name(ReadonlyBytes);
|
||||
[[nodiscard]] bool is_simple_range_header_value(ReadonlyBytes);
|
||||
[[nodiscard]] Optional<RangeHeaderValue> parse_single_range_header_value(ReadonlyBytes);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue