Classes

Class HttpMessagePart() Foundation

Class function of the HttpMessagePart class.

Description

The class HttpMessagePart provides interfaces for defining HTTP headers, content as well as multi-part content.

Class Methods
:new()
Creates an instance of the HttpMessagePart class.
HTTP Headers
:addHeader()
Adds a HTTP header.
:delHeader()
Deletes a HTTP header.
:getHeader()
Gets a HTTP header by its name.
:getHeaders()
Gets all HTTP headers.
:setHeader()
Sets the value of a HTTP header element.
HTTP Content
:getContent()
Gets the content.
:setContent()
Sets the content.
:setContentCharset()
Defines the charset of the content.
:setContentEncoding()
Defines the content encoding.
:setContentType()
Sets the content type.
Message Parts
:addPart()
Adds a part to a message.
:getParts()
Gets all parts added to a message.
:delPart()
Deletes a part from a multi-part message.
:addFilePart()
Adds a file to a message.
:setFilePart()
Sets the value of a file part.
Feedback

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.