Method HttpMessagePart() :getParts() Foundation

Gets all parts added to a message.

:getParts( [<cName>] ) --> aParts
An optional character string with the name of the parts to be returned.

:getParts() returns an array with HttpMessagePart objects. An empty array is returned when no message part was added to the message or no message part exists with the given name.


The method :getParts() gets all parts defined in a message. If a name is passed in the optional <cName> parameter, then only the parts with a corresponding name attribute in the "Content-Disposition" HTTP header are returned.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.