withReadOnly

open fun withReadOnly(): SOURCE

Marks this message as read-only and returns it for method chaining.

This method sets the header to read-only mode, preventing further modifications to the message metadata. The message body is typically immutable by design.

Return

This message instance (cast to SOURCE type) to support method chaining