Class HttpMessage() Foundation

Class function of the HttpMessage class.

Superclass
Description

The class HttpMessage handles header and content processing.

Class Methods
:new()
Creates an instance of the HttpMessage 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.
:delPart()
Deletes a part from a multi-part message.
:getParts()
Gets all parts added to a 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.