Implement transparent HEAD support

and don't close on HEAD request when sending CloseDelimited