Hi all,

Off-list discussion with some vendors and consumers indicates that adoption and 
migration might be eased by the following changes to ServerResponseInterface:

- Add the following methods:

    - `getHeader(string $label) : ?string`
    - `hasHeader(string $label) : bool`
    - `getCookie(string $name) : ?array`
    - `hasCookie(string $name) : bool`

- Modify `add*()`, `set*()`, and `unset*()` to be fluent (allow method chaining)

Since these changes fit in well with the RFC goals, and do not substantially 
modify prior usage expectations, John Boehr has applied them to the extension, 
with documentation and tests.

Further, one evaluator noted that ServerResponseSender::sendContent() did not 
allow for iterables/generators as content; that has been remedied as well.


-- 
Paul M. Jones
pmjo...@pmjones.io
http://paul-m-jones.com

Modernizing Legacy Applications in PHP
https://leanpub.com/mlaphp

Solving the N+1 Problem in PHP
https://leanpub.com/sn1php

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to