Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98864 invoked from network); 31 Oct 2014 17:04:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2014 17:04:44 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.244 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.244 imap1-3.ox.privateemail.com Received: from [198.187.29.244] ([198.187.29.244:37351] helo=imap1-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/23-15608-A21C3545 for ; Fri, 31 Oct 2014 12:04:42 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 6F2C6B005A1; Fri, 31 Oct 2014 12:58:35 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mtAh2wI3uQK0; Fri, 31 Oct 2014 12:58:30 -0400 (EDT) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id BC0D8B00A60; Fri, 31 Oct 2014 12:19:23 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: Date: Fri, 31 Oct 2014 16:19:21 +0000 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <8AA031AF-6A31-4B71-8DCF-A334B384F4EC@ajf.me> References: To: Sherif Ramadan X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: ajf@ajf.me (Andrea Faulds) > On 30 Oct 2014, at 18:23, Sherif Ramadan = wrote: >=20 > I've started a draft RFC, but please be patient as this is a working = in > progress, here https://wiki.php.net/rfc/http-interface on the wiki. >=20 > The point here is to allow users to implement their own HttpRequest = and > HttpResponse classes that can deal directly with the raw = request/response > messages in any way the user deems fit. This alleviates cases like = "what > about when I want to have $_PUT or $_DELETE" and removes the ambiguity = of > the $_POST, $_GET superglobals to a more conforming way of handling = the > messages. OK, I=E2=80=99ve gone and re-read the RFC and I finally understand this = proposal, sorry for my previous misunderstanding. You=E2=80=99re = proposing a mechanism to plug in your own parser for the HTTP message = headers and body, right? I=E2=80=99m not sure I really see what it solves, though? Why should we = allow users to implement their own slow parsers in userland? Why can=E2=80= =99t we just have a single built-in parser like we=E2=80=99ve had the = last two decades? I don=E2=80=99t see the point. -- Andrea Faulds http://ajf.me/