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.
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.