Replaced http::handler type with template parameters