added changes to HttpRequest class