diff options
-rw-r--r-- | Userland/Libraries/LibWeb/Fetch/Infrastructure/FetchAlgorithms.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/FetchAlgorithms.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/FetchAlgorithms.h index a73f6e4856..2676547d78 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/FetchAlgorithms.h +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/FetchAlgorithms.h @@ -20,12 +20,14 @@ class FetchAlgorithms : public JS::Cell { public: struct ConsumeBodyFailureTag { }; + using BodyBytes = Variant<Empty, ConsumeBodyFailureTag, ByteBuffer>; + using ProcessRequestBodyChunkLengthFunction = JS::SafeFunction<void(u64)>; using ProcessRequestEndOfBodyFunction = JS::SafeFunction<void()>; using ProcessEarlyHintsResponseFunction = JS::SafeFunction<void(JS::NonnullGCPtr<Infrastructure::Response>)>; using ProcessResponseFunction = JS::SafeFunction<void(JS::NonnullGCPtr<Infrastructure::Response>)>; using ProcessResponseEndOfBodyFunction = JS::SafeFunction<void(JS::NonnullGCPtr<Infrastructure::Response>)>; - using ProcessResponseConsumeBodyFunction = JS::SafeFunction<void(JS::NonnullGCPtr<Infrastructure::Response>, Variant<Empty, ConsumeBodyFailureTag, ByteBuffer>)>; + using ProcessResponseConsumeBodyFunction = JS::SafeFunction<void(JS::NonnullGCPtr<Infrastructure::Response>, BodyBytes)>; struct Input { Optional<ProcessRequestBodyChunkLengthFunction> process_request_body_chunk_length; |