Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108518 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97220 invoked from network); 12 Feb 2020 23:12:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Feb 2020 23:12:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 91E55180532 for ; Wed, 12 Feb 2020 13:27:12 -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=-0.5 required=5.0 tests=BAYES_05,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8943 85.119.80.0/21 X-Spam-Virus: No X-Envelope-From: Received: from mail.apserver.co.uk (server2.alteredperspective.co.uk [85.119.82.103]) by php-smtp4.php.net (Postfix) with ESMTP for ; Wed, 12 Feb 2020 13:27:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.apserver.co.uk (Postfix) with ESMTP id 6CFCE4F4064; Wed, 12 Feb 2020 21:26:31 +0000 (GMT) Received: from mail.apserver.co.uk ([127.0.0.1]) by localhost (server2.alteredperspective.co.uk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L1Z1SzvANbPL; Wed, 12 Feb 2020 21:26:29 +0000 (GMT) Received: from [192.168.0.7] (unknown [86.18.119.17]) by mail.apserver.co.uk (Postfix) with ESMTPA id 7A84A4F4061; Wed, 12 Feb 2020 21:26:29 +0000 (GMT) To: "Paul M. Jones" , internals@lists.php.net References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> Message-ID: <3efc8ed3-61a8-dad8-dd1f-207217589eba@allenjb.me.uk> Date: Wed, 12 Feb 2020 21:27:08 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2) From: php.lists@allenjb.me.uk (AllenJB) This might be more a "future scope" thing, but I would like to see a way to access the raw request body as part of this. Currently (as far as I know) the only way is to open/read php://input, which isn't particularly intuitive in my opinion. AllenJB On 10/02/2020 16:18, Paul M. Jones wrote: > Hi Internals, > > After a couple of years of incubation, I am happy to offer a second version of this RFC: > > https://wiki.php.net/rfc/request_response > > It proposes an object-oriented approach around request and response functionality already existing in PHP, in order to reduce the global-state problems that come with superglobals and the various response-related functions. > > The SQLite "about" page says, "Think of SQLite not as a replacement for Oracle but as a replacement for fopen()." Likewise, think of this RFC not as a replacement for HttpFoundation or PSR-7, or as a model of HTTP messages, but as an object-oriented alternative to superglobals, header(), setcookie(), setrawcookie(), and so on. > > Thanks in advance for your time and consideration while evaluating it. > >