Skip to content

docs: clarify HTTPMessage mutability - #328

Merged
duglin merged 1 commit into
cloudevents:mainfrom
shashank231:docs/http-message-mutability
Nov 29, 2026
Merged

duglin merged 1 commit into
cloudevents:mainfrom
shashank231:docs/http-message-mutability

Conversation

@shashank231

Copy link
Copy Markdown
Contributor

Summary

Clarify that HTTPMessage fields cannot be reassigned, while its headers dictionary can still be modified in place.

Related to #175.

Testing

  • uv run pytest tests/test_core/test_bindings/test_http.py -q (66 passed)
  • uv run ruff check --select I

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the HTTPMessage mutability documentation update.

No open issues 🎉

What changed in this PR

Clarifies HTTPMessage mutability in its docstring, supporting the documentation improvements tracked in #175. No runtime behavior changes.

Changes:

  • Explains that fields cannot be reassigned, while the headers dictionary can still be modified in place.
File Description
src/​cloudevents/​core/​bindings/​http.py Replaces the blanket immutability claim with precise mutability documentation.

Review effort: Balanced

Signed-off-by: Shashank Kaushik <kaushikshashank1998@gmail.com>
@duglin
duglin force-pushed the docs/http-message-mutability branch from 4acbdd0 to 801aff0 Compare November 29, 2026 13:30
@duglin
duglin merged commit 0fc41b1 into cloudevents:main Nov 29, 2026
19 checks passed
@shashank231
shashank231 deleted the docs/http-message-mutability branch November 29, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants