Questions tagged [http2]

HTTP/2 is the new version of the popular HTTP protocol

HTTP/2 is a replacement for how HTTP is expressed “on the wire.” It is not a ground-up rewrite of the protocol; HTTP methods, status codes and semantics will be the same, and it should be possible to use the same APIs as HTTP/1.x (possibly with some small additions) to represent the protocol.

The focus of the protocol is on performance; specifically, end-user perceived latency, network and server resource usage. One major goal is to allow the use of a single connection from browsers to a Web site.

1542 questions
314
votes
9 answers

Does HTTP/2 make websockets obsolete?

I'm learning about HTTP/2 protocol. It's a binary protocol with small message frames. It allows stream multiplexing over single TCP connection. Conceptually it seems very similar to WebSockets. Are there plans to obsolete websockets and replace them…
vbezhenar
  • 8,347
  • 6
  • 40
  • 53
227
votes
2 answers

What is the difference between HTTP 1.1 and HTTP 2.0?

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?
user1968030
133
votes
5 answers

What does multiplexing mean in HTTP/2

Could someone please explain multiplexing in relation to HTTP/2 and how it works?
user3448600
  • 2,558
  • 4
  • 14
  • 22
107
votes
2 answers

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

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…
Lakshman Diwaakar
  • 6,002
  • 4
  • 40
  • 73
95
votes
29 answers

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

I'm currently working on a website, which triggers a net::ERR_HTTP2_PROTOCOL_ERROR 200 error on Google Chrome. I'm not sure exactly what can provoke this error, I just noticed it pops out only when accessing the website in HTTPS. I can't be 100%…
Tristan G
  • 1,017
  • 1
  • 3
  • 9
89
votes
2 answers

What is difference between grpc and websocket? Which one is more suitable for bidirectional streaming connection?

I want to develop a client-server application in a bi-directional streaming manner. what is more suitable technology for this, grpc or websocket?
prashant sindhu
  • 1,231
  • 1
  • 13
  • 21
68
votes
7 answers

How to check if a website has HTTP/2 protocol support

There are a lot of topics about the HTTP/2 protocol, but I wonder if there is a working website with this protocol. I.e. We can decide to use http:// or https://, but how can we write a HTTP/2 request? I am aware that this protocol depends on the…
Stevan Tosic
  • 4,074
  • 4
  • 34
  • 83
54
votes
5 answers

HTTP2 with node.js behind nginx proxy

I have a node.js server running behind an nginx proxy. node.js is running an HTTP 1.1 (no SSL) server on port 3000. Both are running on the same server. I recently set up nginx to use HTTP2 with SSL (h2). It seems that HTTP2 is indeed enabled and…
Shade
  • 9,366
  • 5
  • 54
  • 81
53
votes
4 answers

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

Is it possible currently to get node.js HTTP/2 (HTTP 2.0) server? And http 2.0 version of express.js?
WHITECOLOR
  • 19,653
  • 31
  • 109
  • 171
46
votes
5 answers

Does minifying and concatenating JS/CSS files, and using sprites for images still provide performance benefits when using HTTP/2?

With the new HTTP/2 protocol the overhead created by repeated HTTP requests to the same server has been greatly reduced. With this in mind, are there still any significant performance advantages to minifying and concatenating JavaScript/CSS files,…
Alex
  • 4,822
  • 25
  • 41
44
votes
3 answers

Tomcat support for HTTP/2.0?

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.
Asher Johnson
  • 711
  • 1
  • 6
  • 9
42
votes
3 answers

REST API with HTTP/2

Couple of months ago, HTTP/2 was published as RFC7540. How will this affect the existing REST API built on HTTP/1.1? As per Wikipedia, HTTP/2 has added new features. How can we take advantage of these new features?
Sorter
  • 8,190
  • 5
  • 52
  • 63
39
votes
4 answers

Why bundle optimizations are no longer a concern in HTTP/2

I read in bundling parts of systemjs documentation that bundling optimizations no longer needed in HTTP/2: Over HTTP/2 this approach may be preferable as it allows files to be individually cached in the browser meaning bundle optimizations are…
alisabzevari
  • 7,178
  • 6
  • 38
  • 60
38
votes
5 answers

Enable HTTP2 with Tomcat in Spring Boot

Tomcat 8.5, which will be the default in Spring Boot 1.4, supports HTTP/2. How can HTTP/2 be enabled in a Spring Boot application?
yglodt
  • 11,334
  • 13
  • 74
  • 114
37
votes
1 answer

HTTP/2 (HTTP2 or SPDY) on .NET

There's been a lot of news lately about the HTTP/2 standard, very similar to Google's SPDY. It seems like most modern browsers support much of the functionality the finalized HTTP/2 draft lays out (see here, for example). But, from the viewpoint of…
Aaron Thomas
  • 4,670
  • 6
  • 35
  • 79
1
2 3
99 100