http2: switch into http2 mode if NPN indicates
authorFabian Frank <fabian@pagefault.de>
Thu, 30 Jan 2014 05:28:50 +0000 (21:28 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Jan 2014 10:34:37 +0000 (11:34 +0100)
commitdd011df9e1a31e66611f58758ee93f9a346b36a2
treee9fdf81ac03a4216da09bac6cb4fd3c38a2cb9b8
parent8e778887b54c059dc32e297caac7e49dfe2801cc
http2: switch into http2 mode if NPN indicates

Check the NPN result before preparing an HTTP request and switch into
HTTP/2.0 mode if necessary. This is a work in progress, the actual code
to prepare and send the request using nghttp2 is still missing from
Curl_http2_send_request().
lib/http.c
lib/http2.c