[http] HttpRequest: minor code refactor