Re: WSGI 2.0 Round 2: requirements and call for interest
Graham Dumpleton <[email protected]> Wed, 6 Jan 2016 20:29:27 +1100
| Newsgroups | gmane.comp.python.web |
|---|---|
| Message-ID | <[email protected]> |
--===============3005286879761909040== Content-Type: multipart/alternative; boundary="Apple-Mail=_57007750-05FE-4A9A-AED2-F2034E4EB3BC" --Apple-Mail=_57007750-05FE-4A9A-AED2-F2034E4EB3BC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 6 Jan 2016, at 12:13 AM, Benoit Chesneau <[email protected]> = wrote: >=20 > So for me what should be WSGI 2? WSGI 2 should add against WSGI 1 the = following: >=20 > - tell to the application it is actually an HTTP2 request (maybe = populating a wsgi.http2 true env) In CGI implementations you would for HTTP/1.1 already get: SERVER_PROTOCOL: 'HTTP/1.1=E2=80=99 Under HTTP/2 when I tested some time back, I recollect it came through = as one would assume would be expected: SERVER_PROTOCOL: =E2=80=98HTTP/2=E2=80=99 Is there any reason that this existing CGI variable wouldn=E2=80=99t be = sufficient for this purpose? Graham= --Apple-Mail=_57007750-05FE-4A9A-AED2-F2034E4EB3BC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On 6 Jan 2016, at 12:13 AM, Benoit Chesneau <<a = href=3D"mailto:[email protected]" class=3D"">[email protected]</a>>= wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div = style=3D"font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D"">So for me what should be = WSGI 2? WSGI 2 should add against WSGI 1 the following:</div><div = style=3D"font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><br class=3D""></div><div = style=3D"font-family: Helvetica; font-size: 16px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D"">- tell to the application it = is actually an HTTP2 request (maybe populating a wsgi.http2 true = env)</div></div></blockquote><br class=3D""></div><div>In CGI = implementations you would for HTTP/1.1 already get:</div><div><br = class=3D""></div><div>SERVER_PROTOCOL: 'HTTP/1.1=E2=80=99</div><div><br = class=3D""></div><div>Under HTTP/2 when I tested some time back, I = recollect it came through as one would assume would be = expected:</div><div><br class=3D""></div><div>SERVER_PROTOCOL: = =E2=80=98HTTP/2=E2=80=99</div><div><br class=3D""></div><div>Is there = any reason that this existing CGI variable wouldn=E2=80=99t be = sufficient for this purpose?</div><div><br = class=3D""></div><div>Graham</div></body></html>= --Apple-Mail=_57007750-05FE-4A9A-AED2-F2034E4EB3BC-- --===============3005286879761909040== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Web-SIG mailing list [email protected] Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: https://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org --===============3005286879761909040==--