http2

Tomcat support for HTTP/2.0?

狂风中的少年 提交于 2019-12-02 17:53:43
Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this. sbordet I'm the HTTP/2 implementer in Jetty, and I watch out other projects implementing HTTP/2. Tomcat's Mark Thomas has outlined support for HTTP/2 for Tomcat 9 . Update Jan 2017 : Tomcat 8.5 supports HTTP/2 see @joe-aldrich answer https://stackoverflow.com/a/37889873/2027465 Considering that Servlet 4.0 is going to have as a target HTTP/2 support, and that HTTP/2 support requires ALPN support in the JDK (which also I am

node.js server and HTTP/2 (2.0) with express.js

柔情痞子 提交于 2019-12-02 16:33:48
Is it possible currently to get node.js HTTP/2 (HTTP 2.0) server? And http 2.0 version of express.js? Gajus If you are using express@^5 and http2@^3.3.4 , then the correct way to start the server is: const http2 = require('http2'); const express = require('express'); const app = express(); // app.use('/', ..); http2 .raw .createServer(app) .listen(8000, (err) => { if (err) { throw new Error(err); } /* eslint-disable no-console */ console.log('Listening on port: ' + argv.port + '.'); /* eslint-enable no-console */ }); Notice the https2.raw . This is required if you want to accept TCP

Is gRPC(HTTP/2) faster than REST with HTTP/2?

≯℡__Kan透↙ 提交于 2019-12-02 13:56:40
The goal is to introduce a transport and application layer protocol that is better in its latency and network throughput . Currently, the application uses REST with HTTP/1.1 and we experience a high latency. I need to resolve this latency problem and I am open to use either gRPC(HTTP/2) or REST/HTTP2 . HTTP/2: Multiplexed Single TCP Connection Binary instead of textual Header compression Server Push I am aware of all the above advantages. Question No. 1: If I use REST with HTTP/2 , I am sure, I will get a significant performance improvement when compared to REST with HTTP/1.1 , but how does

What is the difference between HTTP 1.1 and HTTP 2.0? [closed]

馋奶兔 提交于 2019-12-02 13:50:56
HTTP/1.1 has served the Web well for more than fifteen years, but its age is starting to show. Can anybody explain what is the main difference between HTTP 1.1 and 2.0? Is there any change in the transport protocol? 84RR1573R HTTP/2 supports queries multiplexing, headers compression, priority and more intelligent packet streaming management. This results in reduced latency and accelerates content download on modern web pages. More details here. HTTP 2.0 is a binary protocol that multiplexes numerous streams going over a single (normally TLS-encrypted) TCP connection. The contents of each

How to do server push with standalone Jetty

时光怂恿深爱的人放手 提交于 2019-12-02 08:31:06
I am trying to test the server push feature on a static website with standalone Jetty. My website consists of an index.html Â+ 1 CSS + a bunch of images. The directory structure is: /Album    Â|    Â|-----index.html    Â|-----style.css    Â|------/images         Â|         Â|-----image 1.png         Â|---a set of 100 images         Â|---image100.png As I just wanted to quickly test out the server push feature I did not code this website as a Java Web project and, therefore, didn't have any web.xml file. However, the Jetty documentation asks to add

http2 module nginx not working

若如初见. 提交于 2019-12-02 07:58:51
问题 I have some problem with enable http2 protocol in nginx. Site writes on Laravel 5 (but I think this doesn't matter). First, I upgrade nginx version. Debian ~ # nginx -V nginx version: nginx/1.10.1 built with OpenSSL 1.0.1e 11 Feb 2013 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fstack-protector -- param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -DFORTIFY_SOURCE=2 -fstack-protector -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx

HTTP2 Push XMLHttpRequest Cache Miss in Chrome

三世轮回 提交于 2019-12-02 05:42:40
问题 I'm setting the Link header to preload an XHR request that happens on load. Link: </images/project_icon.png>; rel=preload; as=image,</db/xhr_stuff>; rel=preload Chrome 57.0 preloads and uses the /images/project_icon.png just fine but it preloads /db/xhr_stuff and then misses the copy it just retrieved and loads it a second time after the DOM completely loads. The request headers are identical except the one later one initiated by the xhr has x-requested-with:XMLHttpRequest set. The only other

HTTP1.1 to HTTP/2: what about headers?

半世苍凉 提交于 2019-12-02 01:08:43
问题 In HTTP 1.1, the status line was scheme/version code reason HTTP/1.1 200 OK I see :scheme and :status headers in the HPACK spec. I don't however see anything for version or reason? Is there not one? In a request in HTTP 1.1, the request line was method uri scheme/version POST http://myhost.com HTTP/1.1 I see :method and I see :path, which I think is just a relative path, which is not the same as the full absolute path (and since Chrome and Firefox are pushing HTTPS for HTTP/2, this may make

Enabling http/2 in Apache 2.4 does not work

夙愿已清 提交于 2019-12-02 01:01:52
We are trying to enable http/2 on Apache 2.4, but with no success. The server OS is FreeBSD 11.2, and the OpenSSL version is 1.0.2o. We have a real and valid SSL Certificate with the rating A+ at Qualys SSL Server Test. No errors in log files, the server restarts without no problems or errors. Access website with https:// works, but browser always downgrades to http/1.1. We have this in our virtual section: <Directory /> Require all granted AllowOverride All SSLOptions +StdEnvVars </Directory> <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> H2Direct on Protocols h2

Can I implements http/2 server without ALPN support?

这一生的挚爱 提交于 2019-12-02 00:18:17
问题 In this way, the client can connect the server without ALPN and use http/2 default. Is that possible? 回答1: Yes it is possible, but the conditions are strict. Browsers, as of now, do not implement clear-text communication for HTTP/2, so if you use a browser the answer to your question is no: you have to deploy your server with ALPN support if you want browsers to be able to connect. On the other hand, other clients such as Java clients may be able to connect to a server using clear-text HTTP/2