Skip to content

v2: HTTP-over-STDIO and Full Test Code Coverage

Latest
Compare
Choose a tag to compare
@EffinMaggie EffinMaggie released this 25 Jun 22:36
· 34 commits to master since this release

This release fixes a few minor bugs (e.g. being unable to have a query string as part of the local part of a URL) and adds the ability to talk HTTP over STDIO for both the server and client.

For the client, simply pass "stdio" as a URL's "port", like http://somewhere:stdio/ - in this case, the host part of the location is ignored for anything but the Host header, and the programme will start talking HTTP on STDIO. This is mostly useful for testing, and for running an HTTP server through xinetd.

Speaking of testing, the tests now cover 100% of the code lines, which means it's pretty likely that this server does exactly what it says on the tin. If you find bugs, please do open an issue - and I do consider lack of documentation a bug :).