Skip to content

Releases: php-fig/http-message

2.0: Merge pull request #95 from Stilch/add-param-and-return-type-hints

17 Apr 06:49
402d35b
Compare
Choose a tag to compare

1.1: Merge pull request #94 from Stilch/add-param-hints

17 Apr 06:48
cb6ce48
Compare
Choose a tag to compare

PSR-7 Acceptance

19 May 03:09
Compare
Choose a tag to compare
Merge pull request #42 from Maks3w/patch-2

Typo s/RFC3985/RFC3986/

Updates from Review-2

04 May 20:21
Compare
Choose a tag to compare

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).

Clarify RequestInterface::getUri() return value

13 Apr 14:20
Compare
Choose a tag to compare
Merge pull request #39 from weierophinney/hotfix/psr7-uri-return

Sync with php-fig/fig-standards#518

0.10.0: Merge pull request #38 from weierophinney/feature/post-draft-2

13 Apr 13:54
Compare
Choose a tag to compare
  • 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.

Interface clarifications

18 Mar 22:44
Compare
Choose a tag to compare
Merge pull request #10 from siwinski/pr-remove-doc-exec

Remove documentation executable bits

URI path/query encoding and Request Host header clarifications

04 Mar 22:47
Compare
Choose a tag to compare
Merge pull request #27 from weierophinney/hotfix/uri-encoding

Added language to withPath() regarding percent encoding

Use the verbiage 'parsed body' instead of 'body params'.

15 Feb 16:16
Compare
Choose a tag to compare
Merge pull request #23 from weierophinney/feature/parsed-body

Body parameters are the parsed body.

Reference request-target only, not the request line

28 Jan 19:54
Compare
Choose a tag to compare
Merge pull request #19 from weierophinney/feature/request-line-refactor

Only work with the request target, not the line