Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108720 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69053 invoked from network); 22 Feb 2020 17:06:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Feb 2020 17:06:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 32EC21804DF for ; Sat, 22 Feb 2020 07:23:11 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29169 217.70.176.0/20 X-Spam-Virus: No X-Envelope-From: Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 22 Feb 2020 07:23:10 -0800 (PST) X-Originating-IP: 107.223.28.39 Received: from [192.168.1.85] (107-223-28-39.lightspeed.nsvltn.sbcglobal.net [107.223.28.39]) (Authenticated sender: pmjones@pmjones.io) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 70446E0003 for ; Sat, 22 Feb 2020 15:23:08 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Sat, 22 Feb 2020 09:23:05 -0600 References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> <50CF1E61-1EF9-4D2C-AEE2-D98E1CFF6F40@pmjones.io> To: php internals In-Reply-To: <50CF1E61-1EF9-4D2C-AEE2-D98E1CFF6F40@pmjones.io> Message-ID: <780D9DFF-AA82-4FF5-9EED-CAEEEE2337F5@pmjones.io> X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2) From: pmjones@pmjones.io ("Paul M. Jones") 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. --=20 Paul M. Jones pmjones@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