From 801aff033f78c7c429782aa8fd113576e1ca77db Mon Sep 17 00:00:00 2001 From: Shashank Kaushik Date: Sun, 29 Nov 2026 17:57:39 +0530 Subject: [PATCH] docs: clarify HTTPMessage mutability Signed-off-by: Shashank Kaushik --- src/cloudevents/core/bindings/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cloudevents/core/bindings/http.py b/src/cloudevents/core/bindings/http.py index fbdcc3b0..e5d1b2be 100644 --- a/src/cloudevents/core/bindings/http.py +++ b/src/cloudevents/core/bindings/http.py @@ -80,8 +80,8 @@ class HTTPMessage: Represents an HTTP message (request or response) containing CloudEvent data. This dataclass encapsulates HTTP headers and body for transmitting CloudEvents - over HTTP. It is immutable to prevent accidental modifications and works with - any HTTP framework or library. + over HTTP. Its fields cannot be reassigned, but the headers dictionary can + still be modified in place. It works with any HTTP framework or library. Attributes: headers: HTTP headers as a dictionary with string keys and values