Re: HTTP/2 Upgrade with content?

On 13 March 2015 at 06:19, Greg Wilkins <gregw@intalio.com> wrote:
> Failing the direct PRI approach, it would be far better to try the upgrade
> on an OPTION request before commencing on the big post/put.

I'd always considered it this way:

Read the headers, notice that it is HTTP/2, proceed as though it were HTTP/1.1.
Then, when the response is written, perform a rewrite into HTTP/2.

I don't see this as impossible, and while it's ugly that the
specialized code has to exist (for numerous reasons), the specific
code doesn't have to be ugly if factored well.

Received on Friday, 13 March 2015 18:26:22 UTC