v0.3.0: Access to message body parts
This release introduces a couple of new methods on the Msg
as well as the Part
. This will help the Msg.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 the Msg
.
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 function
Each of these Part.Get*()
methods also has an corresponding Part.Set*()
methods what overrides the current value
Noteworthy changes
- a3a2b0e Introduces the new getter/setter methods