refactoring
Add a http.HandlerFunc adapter