Skip to content

Commit 4acbdd0

Browse files
committed
docs: clarify HTTPMessage mutability
Signed-off-by: Shashank Kaushik <kaushikshashank1998@gmail.com>
1 parent 277d9d9 commit 4acbdd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/cloudevents/core/bindings

‎src/cloudevents/core/bindings/http.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class HTTPMessage:
8080
Represents an HTTP message (request or response) containing CloudEvent data.
8181
8282
This dataclass encapsulates HTTP headers and body for transmitting CloudEvents
83-
over HTTP. It is immutable to prevent accidental modifications and works with
84-
any HTTP framework or library.
83+
over HTTP. Its fields cannot be reassigned, but the headers dictionary can
84+
still be modified in place. It works with any HTTP framework or library.
8585
8686
Attributes:
8787
headers: HTTP headers as a dictionary with string keys and values

0 commit comments

Comments
 (0)