moved out initial parsing needed by the request handlers to the
HTTPClient, should still be separated out from the client eventually.