improve class HttpRequest