It's April 1st and it's not a joke !
I have a seemingly working version of the server, with the crude MIME support outlined in MIME type handling
As expected, a critical prerequisite of the code was to get the timeout and the connection persistence working well. Then a thorough parsing of request, and countless checks of boundaries and return values...
The MIME type handling requires manual intervention but I will certainly write a script to automate the creation of the links.
I have uploaded the latest archives at HTTaP_src_20170401.tgz