unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.46k stars 176 forks source link

Some improvements to HttpListener and associated classes #511

Closed rdeago closed 3 years ago

rdeago commented 3 years ago

HttpListener and WebSockets code has been in bad need of revision for quite some time. This PR improves code style and fixed some of the easiest issues.

(Don't get me wrong: it's still ugly as hell. Now it just looks a little more like C# and a little less like C on Arduino.)

This PR also closes #510 by having HttpListenerResponse.ProtocolVersion mirror the associated request's ProtocolVersion.