http2 requests #3295
Answered
by
robjtede
J4CKVVH173
asked this question in
Q&A
http2 requests
#3295
-
Hi, I read that actix-web tries to open http 2 if it can. I have two apps on a server and i'd like to use an |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Feb 23, 2024
Replies: 1 comment 5 replies
-
Connection type (HTTP 1 or 2) is a negotiation, on both sides, that is handled automatically when TLS (HTTPS) is used. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apologies, I've learned that nginx doesn't support this. Ignore this point.
I'm not sure I understand. What I can tell you is that when using HTTPS, Actix Web (and nginx / most web servers) automatically negotiates the connection type, h1 or h2 via ALPN.
Does this solve your problem?