* refactor HttpHandler