Latest release

zend-diactoros 1.3.10

@Ocramius Ocramius released this Jan 23, 2017

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #226 fixed an issue with the SapiStreamEmitter causing the response body to be cast to (string) and also be read as a readable stream, potentially producing double output.

Downloads

zend-diactoros 1.3.9

@Ocramius Ocramius released this Jan 17, 2017 · 25 commits to master since this release

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #223
    #224 fixed an issue
    with the SapiStreamEmitter consuming too much memory when producing output
    for readable bodies.

Downloads

zend-diactoros 1.3.8

@weierophinney weierophinney released this Jan 5, 2017 · 26 commits to master since this release

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #222 fixes the SapiStreamEmitter's handling of the Content-Range header to properly only emit a range of bytes if the header value is in the form bytes {first-last}/length. This allows using other range units, such as items, without incorrectly emitting truncated content.

Downloads

zend-diactoros 1.3.7

@weierophinney weierophinney released this Oct 11, 2016 · 45 commits to master since this release

Added

  • #208 adds several missing response codes to Zend\Diactoros\Response, including:
    • 226 ('IM used')
    • 308 ('Permanent Redirect')
    • 444 ('Connection Closed Without Response')
    • 499 ('Client Closed Request')
    • 510 ('Not Extended')
    • 599 ('Network Connect Timeout Error')
  • #211 adds support for UTF-8 characters in query strings handled by Zend\Diactoros\Uri.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

Downloads

zend-diactoros 1.3.6

@weierophinney weierophinney released this Sep 7, 2016 · 70 commits to master since this release

Added

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #186 fixes a typo in a variable name within the SapiStreamEmitter.
  • #200 updates the SapiStreamEmitter to implement a check for isSeekable() prior to attempts to rewind; this allows it to work with non-seekable streams such as the CallbackStream.
  • #169 ensures that response serialization always provides a \r\n\r\n sequence following the headers, even when no message body is present, to ensure it conforms with RFC 7230.
  • #175 updates the Request class to set the Host header from the URI host if no header is already present. (Ensures conformity with PSR-7 specification.)
  • #197 updates the Uri class to ensure that string serialization does not include a colon after the host name if no port is present in the instance.

Downloads

Diactoros 1.3.5

@weierophinney weierophinney released this Mar 17, 2016 · 149 commits to master since this release

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #160 fixes HTTP protocol detection in the ServerRequestFactory to work correctly with HTTP/2.

Downloads

Diactoros 1.3.4

@weierophinney weierophinney released this Mar 17, 2016 · 155 commits to master since this release

Added

  • #119 adds the 451 (Unavailable for Legal Reasons) status code to the Response class.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #117 provides validation of the HTTP protocol version.
  • #127 now properly removes attributes with null values when calling withoutAttribute().
  • #132 updates the ServerRequestFactory to marshal the request path fragment, if present.
  • #142 updates the exceptions thrown by HeaderSecurity to include the header name and/or value.
  • #148 fixes several stream operations to ensure they raise exceptions when the internal pointer is at an invalid position.
  • #151 ensures URI fragments are properly encoded.

Downloads

Diactoros 1.3.3

@weierophinney weierophinney released this Jan 4, 2016 · 248 commits to master since this release

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #135 fixes the behavior of ServerRequestFactory::marshalHeaders() to no longer omit Cookie headers from the aggregated headers. While the values are parsed and injected into the cookie params, it's useful to have access to the raw headers as well.

Downloads

Diactoros 1.3.2

@weierophinney weierophinney released this Dec 22, 2015 · 254 commits to master since this release

Added

  • #124 adds four more optional arguments to the ServerRequest constructor:

    • array $cookies
    • array $queryParams
    • null|array|object $parsedBody
    • string $protocolVersion

    ServerRequestFactory was updated to pass values for each of these parameters when creating an instance, instead of using the related with*() methods on an instance.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #122 updates the ServerRequestFactory to retrieve the HTTP protocol version and inject it in the generated ServerRequest, which previously was not performed.

Downloads

Diactoros 1.3.1

@weierophinney weierophinney released this Dec 16, 2015 · 269 commits to master since this release

Added

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #113 fixes an issue in the response serializer, ensuring that the status code in the deserialized response is an integer.
  • #115 fixes an issue in the various text-basd response types (TextResponse, HtmlResponse, and JsonResponse); due to the fact that the constructor was not rewinding the message body stream, getContents() was thus returning null, as the pointer was at the end of the stream. The constructor now rewinds the stream after populating it in the constructor.

Downloads