Http Message Versions Save

The purpose of this PSR is to provide a set of common interfaces for HTTP messages as described in RFC 7230 and RFC 7231

2.0

1 year ago

1.1

1 year ago

1.0

8 years ago

0.11.0

8 years ago

This tag contains all updates since entering the second review of PSR-7. These include:

  • Clarifications to RequestInterface::withUri() specifying that changes MUST also update the Host header unless the $preserverHost flag is true.
  • Removal of the various getHeader*() method overrides in RequestInterface, as they are irrelevant with the above change.
  • Added verbiage to the RequestInterface class-level docblock indicating that constructors SHOULD attempt to set the Host header in order to ensure the message is valid on initialization.
  • RequestInterface::getHeaderLine() MUST return a string (null was allowed previously, which leads to ambiguity of return value).
  • ResponseInterface::getReasonPhrase() MUST return a string(null was allowed previously, which leads to ambiguity of return value).
  • ResponseInterface::withStatus() now sets the default value of the $reasonPhrase parameter to an empty string (to correspond to the above change).
  • UploadedFileInterface::move() was renamed to moveTo(), and the argument renamed to $targetPath; this clarifies intent for the method.
  • UriInterface::withPath() has clarifications in the docblock to indicate the four possible path types (empty, root path, relative path, domain-relative — or absolute — path).

0.10.1

9 years ago

0.10.0

9 years ago
  • StreamableInterface was renamed to StreamInterface; typehints were updated accordingly.
  • ServerRequestInterface::*FileParams() were renamed to *UploadedFiles(). They now expect and return array trees of a new interface, UploadedFileInterface.
  • UploadedFileInterface was added to provide compatibility between SAPI and non-SAPI environments with regards to handling upload files.
  • A number of clarifications were made on UriInterface with regards to URI component delimiters.

0.9.2

9 years ago

0.9.1

9 years ago

0.9.0

9 years ago

0.8.0

9 years ago