http-kit example refactored