ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
MessageInterface.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Psr\Http\Message;
4 
18 {
26  public function getProtocolVersion();
27 
41  public function withProtocolVersion($version);
42 
68  public function getHeaders();
69 
78  public function hasHeader($name);
79 
94  public function getHeader($name);
95 
115  public function getHeaderLine($name);
116 
132  public function withHeader($name, $value);
133 
150  public function withAddedHeader($name, $value);
151 
164  public function withoutHeader($name);
165 
171  public function getBody();
172 
186  public function withBody(StreamInterface $body);
187 }
getProtocolVersion()
Retrieves the HTTP protocol version as a string.
withoutHeader($name)
Return an instance without the specified header.
HTTP messages consist of requests from a client to a server and responses from a server to a client...
withHeader($name, $value)
Return an instance with the provided value replacing the specified header.
if($format !==null) $name
Definition: metadata.php:146
getBody()
Gets the body of the message.
getHeader($name)
Retrieves a message header value by the given case-insensitive name.
withAddedHeader($name, $value)
Return an instance with the specified header appended with the given value.
withBody(StreamInterface $body)
Return an instance with the specified message body.
hasHeader($name)
Checks if a header exists by the given case-insensitive name.
withProtocolVersion($version)
Return an instance with the specified HTTP protocol version.
getHeaders()
Retrieves all message header values.
getHeaderLine($name)
Retrieves a comma-separated string of the values for a single header.
Describes a data stream.