Extract HttpRequest Class to its own file.