HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: //proc/self/cwd/nueva/modules/btecommercecopilot/vendor/psr/http-message/src/MessageInterface.php
<?php
declare(strict_types=1);
namespace Psr\Http\Message;
/**
 * HTTP messages consist of requests from a client to a server and responses
 * from a server to a client. This interface defines the methods common to
 * each.
 *
 * Messages are considered immutable; all methods that might change state MUST
 * be implemented such that they retain the internal state of the current
 * message and return an instance that contains the changed state.
 *
 * @link http://www.ietf.org/rfc/rfc7230.txt
 * @link http://www.ietf.org/rfc/rfc7231.txt
 */

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 HTTP protocol version.
     */
    public function getProtocolVersion();
    public function withProtocolVersion(string $version);
    public function getHeaders();
    public function hasHeader(string $name);
    public function getHeader(string $name);
    public function getHeaderLine(string $name);
    public function withHeader(string $name, $value);
    public function withAddedHeader(string $name, $value);
    public function withoutHeader(string $name);
    public function getBody();
    public function withBody(StreamInterface $body);
}