* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org * @link http://www.ietf.org/rfc/rfc7230.txt * @link http://www.ietf.org/rfc/rfc7231.txt * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md */ interface MessageInterface { /** * Retrieves the HTTP protocol version as a string. The string MUST contain * only the HTTP version number (e.g., "1.1", "1.0"). * * @return string */ public function getProtocolVersion(); /** * Sets the specified HTTP protocol version. The version string MUST contain * only the HTTP version number (e.g., "1.1", "1.0"). * * @param string $protocol * @return void */ public function setProtocolVersion($protocol); /** * Returns an associative array of the message's headers. Each key MUST be a * header name, and each value MUST be an array of strings for that header * * @return array. */ public function getHeaders(); /** * Sets all message headers which overwrites all existing headers. Each key * MUST be a header name, and each value MUST be an array of strings for * that header * * @param array $headers * @return void */ public function setHeaders(array $headers); /** * Checks if a header exists by the given case-insensitive name. Returns * true if any header names match the given header name using a * case-insensitive string comparison. Returns false if no matching header * name is found in the message. * * @param string $name * @return boolean */ public function hasHeader($name); /** * Retrieves a message header value by the given case-insensitive name. This * method returns a string. If a header has multiple values they will be * concatenated with a comma. If the header does not appear in the message, * this method MUST return null * * @param string $name * @return string|null */ public function getHeader($name); /** * Retrieves a header by the given case-insensitive name as an array of * strings * * @param string $name * @return array */ public function getHeaderLines($name); /** * Sets a new header, replacing any existing values of any headers with the * same case-insensitive name * * @param string $name * @param string|array $value */ public function setHeader($name, $value); /** * Adds a new header, the value gets appended if such a header already * exists * * @param string $name * @param string|array $value */ public function addHeader($name, $value); /** * Removes the given header name * * @param string $name */ public function removeHeader($name); /** * Gets the body of the message * * @return \Psr\Http\Message\StreamInterface */ public function getBody(); /** * Sets the specified message body * * @param \Psr\Http\Message\StreamInterface $body */ public function setBody(PsrStreamInterface $body); } __halt_compiler();----SIGNATURE:----uOed7i20sHKImC+KW3blnep/yDNwJtc4UEm5t8y794/W2EEwxLzMJyf8mgtuj8FGE2uXI1LMolHiUj9Lq29F2hnbnbw0cAODPMb75HyXSlDeS7evukqROZiq7g18VgCiHqfTkkMU8LJ5dvTn15pSqiZB0JHdJqUDOuV5Xy5mJJ3GVmSNmJhTpFzt6hh2FZHL0uiWcG86f5lmlt+sku3IKiqkIXYuRvpcxkPgGl6e5bwPiTUz6AeLUf+27fuO/NWsugY+tCwRXBZqhZ8ZBGv8T9UF8N5p38avRO9kMDIeZwi/rUjcx58xGeQOdnSq16ezLELIZ662aN5+CJ5AwTeFZeyH//UFGNYahxmoHZFJHjey8YjMibr1eirpPvvYj/g5q0eeSJVsacdInH3HH3VJxSTcfa+NOTap4h30uGzgxq6vDMEg7Gfp6ufruG64qh+f0OcrTTaX6NJIYUCCxwQjxX00Ipfyp59vwI4Mzxn9D6OumOw7obOpCImyYl2kfH7Qpo4Ujy0kYx0IEV3UXzLpIbnZKIbAJrkM5TvZvBBNKsNAzF/NzNAt2LUwKPL/a+wZ50VOoksk4i/Gtkr3C8o7E1R+ovfVdkKo0w/sYCS9I+a0wJ+5n4o8IJb0WEEXC8B+s4SVEfexC3Cxkzu48KRbawA0c+9h4RmVnay/2VyAbGA=----ATTACHMENT:----ODM1ODM4OTk3MTAyNTExMiAxODM1MjY4Nzc1NzQ5NDc2IDkyNjYzMTYxMTY2MTg5MDI=