v0.3.0: Access to message body parts #62
Closed
wneessen
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release introduces a couple of new methods on the
Msg
as well as thePart
. This will help theMsg.Middleware
to be more extensible since we allow access not only to headers but also to body parts.To get the Msg body parts, one can now utilize the
Msg.GetParts()
methods to get the list of currently assigned message parts to theMsg
.Each
Part
has now an additional list of getters/setters, to read and modify the given part:Part.GetContent()
: get the parts contentPart.GetContentType()
: get the parts content typePart.GetEncoding()
: get the parts encodingPart.GetWriteFunc()
: get the parts write functionEach of these
Part.Get*()
methods also has an correspondingPart.Set*()
methods what overrides the current valueNoteworthy changes
This discussion was created from the release v0.3.0: Access to message body parts.
Beta Was this translation helpful? Give feedback.
All reactions