defer writing request + headers

allows whole request in single write for string bodies
closes #233