some refactoring of spec usage of HTTPClient; running server with 1 woker