* @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:----WgGBMVDOvuq8mNsKylaeTi68SVZY66JBtkmQTEIZRVs4iXZYJMOSRucid+Hsiab6gMv/1GIr9ZXmGj2Akpv+fkk7Ytv5Bw7rb/SypTYoa73Yn9sCA1y6wJnzq5K/c693BBBkoMyjpC3OtP21fXlunX4rMP1jjtLMIbw0X5KcjjqwRJH0kEUWjq63ZrSsK11V3bmNINryJqACKYjfiG8htsB3V4imr5V+WRNPxzR/Vvdc3ZPqicjEwXVS771Est27UPgBuLiJlVbPy03i7KNARIKF+pQELvPCQylNxmtutQ63zMvrwLLjcI/En+6q085YVQ6+cPrcxxNoRCtK+06im8GDxvyKNcQcYMjQl5cyE07HHu5mPspk69bjwd8GqXPRJmC4xtKNj2eBc2lesAnHqB9UQi5DXoRFRyPzTNvLO2jB/CW1rIZg6gzpr/IN/C8NtsxI3SbUrwtfnHXES8pZoHdAdMmb+wQw01Hvus1Lfir4nIMNMgdspRFtuysW5glM+wvgQMa1DCxyklO+iLt77T6CPb/MbVxkiFQj1FX/OT127ziGte51V7BEnjtHe02HoP/u4kNFQEwZX1DjoAeN37QBXtIao3+jVL5hKoKv8M9b2/Cge3b1klcLmrYZfbBHR0laFA+GQekRm3Bc5rDDoclE9riwkdVV5cyp1k2IRHI=----ATTACHMENT:----NTk2OTQyMzY4MTIzODAxMyA5MDcwMzIyOTAyNDE2MDY0IDQwODIyMDQ2MTM5MjkzOTg=