[libhttp] Made HttpRequest methods more generic.