refactor HttpApiServlet