Questions tagged [http2]

HTTP2 (or HTTP v2.0) is an alternative to, but does not obsolete, HTTP1.1.

HTTP v1.1's underlying transport has several characteristics that have a negative overall effect on application performance today. HTTP/2 addresses these issues by defining an optimized mapping of HTTP's semantics to an underlying connection. Specifically, it allows interleaving of request and response messages on the same connection and uses an efficient coding for HTTP header fields. It also allows prioritization of requests, letting more important requests complete more quickly, further improving performance.

Source: RFC 7540 @ https://datatracker.ietf.org/doc/html/rfc7540
1819 questions
22
votes
3 answers

HTTP2 over AWS ELB under TCP Mode

Does anyone have the experience using HTTP2 server behind AWS ELB running in TCP Mode? As I know, AWS ELB does not support HTTP2 now, however, by using TCP mode, it should pass the request to the backend server transparently. Does someone have the…
Kevingo Tsai
  • 629
  • 7
  • 21
21
votes
3 answers

Use HTTP 2 with HttpClient in .Net

I'm trying to request data over HTTP 2.0. I'm using the HttpClient from .Net Core 2.2. I'm on Windows 10 but will run on Linux in production. The problem is that the version on the response seems to always be "1.1". What I am doing wrong? using (var…
Robert M
  • 233
  • 1
  • 2
  • 6
20
votes
1 answer

What the difference between JSON RPC with HTTP2 vs grpc?

I don't like tools that do many things at once. So GRPC seems to me overhead, it's like kubernetes. GRPC is the tool that combines actually two things: extended Protobuf (Service support) and HTTP2. I read a lot of articles saying that using GRPC…
Alexander Kondaurov
  • 3,677
  • 5
  • 42
  • 64
20
votes
3 answers

How to server HTTP/2 Protocol with django

I am planing to deploy my Django application with HTTP/2 protocol but I'm unable to find the proper solution. How can I serve my Django web application with HTTP/2, the only thing that I find is hyper-h2. I read the documentation but unable to setup…
Pankaj Sharma
  • 2,185
  • 2
  • 24
  • 50
20
votes
4 answers

How do I send a HTTP/2 POST request in PHP

I found a similar question at Sending HTTP/2 POST request in Ruby But I want to update my server with PHP The new Apple push notification HTTP/2 based API described here:…
mthuong
  • 407
  • 1
  • 5
  • 13
20
votes
1 answer

Do current XHR implementations take advantage of HTTP/2?

This may just highlight some misconception of mine, but I was curious: If you had an HTTP/2 server running and wanted to make XHR requests in the browser to the server, would XHR automatically take advantage of the performance optimisations in…
Nick Jennings
  • 3,853
  • 6
  • 30
  • 45
20
votes
3 answers

HTTP2 with CURL gives "Unsupported Protocol"

Having already followed the steps from here, I still have Unsupported Protocol when using curl --http2 option. Similarly, setting the CURLOPT_HTTP_VERSION to CURL_HTTP_VERSION_2_0 results in the program communicating using HTTP/1.1, not…
Curioso
  • 343
  • 1
  • 3
  • 7
19
votes
2 answers

Possible types of a HTTP header value

The type of a value passed through a query string is always a string. When a HTTP client need to send a number, let's say 42, in is actually "42". Everything inside the query string is actually a string. Is it the same for the type of values passed…
Zag zag..
  • 6,041
  • 6
  • 27
  • 36
19
votes
2 answers

Does using image sprites make sense in HTTP/2?

The bundling of JS and CSS files won't be necessary in HTTP/2, but what about image sprites? Looking at the demo it seems that it already works way faster than HTTP/1.1, but won't bundling images into sprites make it even faster? I mean, won't the…
Victor Marchuk
  • 13,045
  • 12
  • 43
  • 67
19
votes
4 answers

HTTP/2 support in Tomcat 8

After some research, I was surprised that I did not not find any resource on HTTP/2 support in Tomcat. Changelogs of 8.0 indicate an experimental support of SPDY and wiki refers to HTTP/2 as a supported spec…
Guillaume D.
  • 3,284
  • 3
  • 20
  • 26
18
votes
1 answer

Can you achieve Http/2 multiplexing with .Net Core HttpClient?

Summary The Http/2 protocol provides the ability to multiplex multiple requests over a single connection. This allows for more efficient use of connections - see https://http2.github.io/faq/#why-is-http2-multiplexed I would expect to be able to use…
Mark Taylor
  • 471
  • 4
  • 11
18
votes
1 answer

Is it possible to host multiple domain TLS in golang with net/http?

I have multiple domain (let's say abc.com and xyz.org) with diffrent certificate. Is it possible to use key and certificate based on hostname without going deep low level and net.Listen, etc. Just using simple http.ListenAndServeTLS(...) or similar…
Ostad
  • 2,784
  • 2
  • 15
  • 17
18
votes
4 answers

NodeJS native http2 support

Does NodeJS 4.x or 5.x natively support the HTTP/2 protocol? I know there's http2 package but it's an external thing. Are there some plans to merge http2 support into the Node's core?
Oskar Szura
  • 2,469
  • 5
  • 32
  • 42
18
votes
3 answers

Should we prefer SSE + REST over websocket when using HTTP/2?

When using websocket, we need a dedicated connection for bidirectionnel communication. If we use http/2 we have a second connection maintained by the server. In that case, using websocket seems to introduce an unecessary overhead because with SSE…
Guillaume D.
  • 3,284
  • 3
  • 20
  • 26
18
votes
3 answers

curl does not support http2 on mac

I've got the latest version of curl and still not seeing http2 show up as a feature. I've followed steps around related questions, but still out of luck. $ /usr/local/Cellar/curl/7.43.0/bin/curl -V curl 7.43.0 (x86_64-apple-darwin14.3.0)…
Mark Fine
  • 211
  • 2
  • 5