Refactors handlers to eca.http.