refactor HttpRequestEvent