"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Http/Response.php" between
cakephp-4.2.2.tar.gz and cakephp-4.2.3.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

Response.php  (cakephp-4.2.2):Response.php  (cakephp-4.2.3)
skipping to change at line 38 skipping to change at line 38
use Laminas\Diactoros\Stream; use Laminas\Diactoros\Stream;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface; use Psr\Http\Message\StreamInterface;
use SplFileInfo; use SplFileInfo;
/** /**
* Responses contain the response text, status and headers of a HTTP response. * Responses contain the response text, status and headers of a HTTP response.
* *
* There are external packages such as `fig/http-message-util` that provide HTTP * There are external packages such as `fig/http-message-util` that provide HTTP
* status code constants. These can be used with any method that accepts or * status code constants. These can be used with any method that accepts or
* returns a status code integer. Keep in mind that these consants might * returns a status code integer. Keep in mind that these constants might
* include status codes that are now allowed which will throw an * include status codes that are now allowed which will throw an
* `\InvalidArgumentException`. * `\InvalidArgumentException`.
*/ */
class Response implements ResponseInterface class Response implements ResponseInterface
{ {
use MessageTrait; use MessageTrait;
/** /**
* @var int * @var int
*/ */
skipping to change at line 602 skipping to change at line 602
* *
* This method MUST be implemented in such a way as to retain the * This method MUST be implemented in such a way as to retain the
* immutability of the message, and MUST return an instance that has the * immutability of the message, and MUST return an instance that has the
* updated status and reason phrase. * updated status and reason phrase.
* *
* If the status code is 304 or 204, the existing Content-Type header * If the status code is 304 or 204, the existing Content-Type header
* will be cleared, as these response codes have no body. * will be cleared, as these response codes have no body.
* *
* There are external packages such as `fig/http-message-util` that provide HTTP * There are external packages such as `fig/http-message-util` that provide HTTP
* status code constants. These can be used with any method that accepts or * status code constants. These can be used with any method that accepts or
* returns a status code integer. However, keep in mind that these consants * returns a status code integer. However, keep in mind that these constants
* might include status codes that are now allowed which will throw an * might include status codes that are now allowed which will throw an
* `\InvalidArgumentException`. * `\InvalidArgumentException`.
* *
* @link https://tools.ietf.org/html/rfc7231#section-6 * @link https://tools.ietf.org/html/rfc7231#section-6
* @link https://www.iana.org/assignments/http-status-codes/http-status-code s.xhtml * @link https://www.iana.org/assignments/http-status-codes/http-status-code s.xhtml
* @param int $code The 3-digit integer status code to set. * @param int $code The 3-digit integer status code to set.
* @param string $reasonPhrase The reason phrase to use with the * @param string $reasonPhrase The reason phrase to use with the
* provided status code; if none is provided, implementations MAY * provided status code; if none is provided, implementations MAY
* use the defaults as suggested in the HTTP specification. * use the defaults as suggested in the HTTP specification.
* @return static * @return static
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)