Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91561 invoked from network); 31 Oct 2014 16:07:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2014 16:07:30 -0000 Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:61080] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/B1-15608-1C3B3545 for ; Fri, 31 Oct 2014 11:07:29 -0500 Received: by mail-wi0-f175.google.com with SMTP id ex7so1739451wid.2 for ; Fri, 31 Oct 2014 09:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=W//3EM++p6FZwGZSaGbk8vemx2W0D2KbmyrLFLvd3Y4=; b=lyE+DsouLou2spvixVoAAeVokF12Pt8g9RBZkamlZ9R5nNyjjGozile0PMjqB7WOLm UEr2++K6BB3pfmKinjXA7dfbBg5vPfXk1TwWPKocPpIy991n+bEK9mZctt45x/IUQdXM OKg/a3RFOsKlYIM/oqqBvDEgvg6fZbRtCC5dOTxoaXQz49tdf/cak9escUnaONaIlvfl 617IIERPFYsH+yv36FOoZ94RhtzFdBFgrOPEZ2GpO3nOnh8RgGQlp+VIVcWqRzuRwsG3 lT2TP577xjgLSU1+JQNaIG173VkYbWtL8lCIgmORicQ5AhxG78ADfag2WRZuOzi1P8jE laag== MIME-Version: 1.0 X-Received: by 10.194.94.9 with SMTP id cy9mr3852445wjb.117.1414771646234; Fri, 31 Oct 2014 09:07:26 -0700 (PDT) Received: by 10.216.123.4 with HTTP; Fri, 31 Oct 2014 09:07:26 -0700 (PDT) In-Reply-To: <5453B114.6050400@gmail.com> References: <5452B87B.5040009@garfieldtech.com> <0B797CE3-7AFA-4330-9A98-D3CAFC6D6072@ajf.me> <5453B114.6050400@gmail.com> Date: Fri, 31 Oct 2014 12:07:26 -0400 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7bb047dc6988000506ba3102 Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: theanomaly.is@gmail.com (Sherif Ramadan) --047d7bb047dc6988000506ba3102 Content-Type: text/plain; charset=UTF-8 On Fri, Oct 31, 2014 at 11:56 AM, Rowan Collins wrote: > > I think the piece that's missing is how exactly these interfaces would > interact with core, or rather with the SAPIs which handle the actual > transfer of HTTP requests and responses. > PHP would have an HttpRequest class, as noted in the updated RFC, which implements the HttpMessageReceive interface. The HttpRequest class's default behavior would be to just populate the superglobals (i.e. having the same net-effect as the current behavior). If a user wanted to override that default behavior they would just extend HttpRequest and implement the functions/methods they wanted to override. --047d7bb047dc6988000506ba3102--