C++ Web Server on my custom hobby OS
oshub.org
C++ Web Server on my custom hobby OS
1–10 of 17 posts
Re: C++ Web Server on my custom hobby OS
#2Re: C++ Web Server on my custom hobby OS
#3Very cool! Why was and the entire networking stack straight forward, but not HTTP (and TCP)? Could you take inspiration form other projects for things like DNS?
HTTP is mostly annoying because of all the text parsing :D
Re: C++ Web Server on my custom hobby OS
#4Re: C++ Web Server on my custom hobby OS
#5Very cool! Why was and the entire networking stack straight forward, but not HTTP (and TCP)? Could you take inspiration form other projects for things like DNS?
Up to TCP most protocols are very straight forward, atleast getting them to work semi reliable. But then TCP explodes in complexity with all the state management and possible paths a connection can take. HTTP is mostly annoying because of all the text parsing :D
HTTP/3 might have been easier, and using QUIC+HTTP/3 in your hobby OS is a fun flex :)
Re: C++ Web Server on my custom hobby OS
#6Earlier quoted context omitted.
Up to TCP most protocols are very straight forward, atleast getting them to work semi reliable. But then TCP explodes in complexity with all the state management and possible paths a connection can take. HTTP is mostly annoying because of all the text parsing :D
Yeah...HTTP/1 is one of those weird cases where the older protocol is considerably more difficult to implement correctly than the newer ""more complex"" standard. This is especially true if you want your server to work with they myriad of questionably compliant clients out in the world. HTTP/3 might have been easier, and using QUIC+HTTP/3 in your hobby OS is a fun flex :)
Re: C++ Web Server on my custom hobby OS
#7Re: C++ Web Server on my custom hobby OS
#8Earlier quoted context omitted.
Up to TCP most protocols are very straight forward, atleast getting them to work semi reliable. But then TCP explodes in complexity with all the state management and possible paths a connection can take. HTTP is mostly annoying because of all the text parsing :D
Yeah...HTTP/1 is one of those weird cases where the older protocol is considerably more difficult to implement correctly than the newer ""more complex"" standard. This is especially true if you want your server to work with they myriad of questionably compliant clients out in the world. HTTP/3 might have been easier, and using QUIC+HTTP/3 in your hobby OS is a fun flex :)
Re: C++ Web Server on my custom hobby OS
#9You should add OpenAPI generation. So that basically the endpoint /openapi.json is auto-generated.