Avoid multiple small writes

This combines small writes to avoid TCP delays when sending the request
as when keep_alive is enabled you can fall foul of nagle.
fix up coverage whitelist