ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MessageInterface.php
Go to the documentation of this file.
1<?php
2
3namespace 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}
$version
Definition: build.php:27
An exception for terminatinating execution or to throw for unit testing.
HTTP messages consist of requests from a client to a server and responses from a server to a client.
getHeaderLine($name)
Retrieves a comma-separated string of the values for a single header.
getHeader($name)
Retrieves a message header value by the given case-insensitive name.
withBody(StreamInterface $body)
Return an instance with the specified message body.
withHeader($name, $value)
Return an instance with the provided value replacing the specified header.
getHeaders()
Retrieves all message header values.
withProtocolVersion($version)
Return an instance with the specified HTTP protocol version.
getBody()
Gets the body of the message.
withoutHeader($name)
Return an instance without the specified header.
hasHeader($name)
Checks if a header exists by the given case-insensitive name.
withAddedHeader($name, $value)
Return an instance with the specified header appended with the given value.
getProtocolVersion()
Retrieves the HTTP protocol version as a string.
Describes a data stream.