Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add validity checks for HTTP datagrams #85
Added overloads for the
According to the RFCs of HTTP/1.0 and 1.1 a HTTP request must contain at least a method, an URI, and the version. So
For responses, the RFCs require at least the version, status code, and a reason phrase. Since the reason phrase can be basically any string I excluded it from the validity check and just check the version and status code. So
This pull request also includes unit tests for the different cases of missing / present values for the mentioned elements.
I am not sure if I got the