Refactor - an http-handler spport one-http-api