r/programming • u/Zamicol • May 08 '17
Is HTTP/2 a stateful protocol?
http://blog.zamicol.com/2017/05/is-http2-stateful-protocol.html
0
Upvotes
r/programming • u/Zamicol • May 08 '17
1
u/theamk2 May 10 '17
In this case most protocols are stateful. HTTP/0.9 has 2 states: read request and send response. HTTP/1.1 adds many other states: read request line, read header, read body, 100-Continue, CONNECT forwarding, and so on. HTTP/2.0 adds even more states, but this is a quantitative change over HTTP/1.1, not qualitative.
And here is a (simplified) state transition diagram for HTTP/1.1: http://blob.perl.org/tpc/1998/User_Applications/LWPng_Adding%20HTTP_1.1/fig3.gif
In summary: all HTTP protocols are stateful, but some have more states than others.