update HttpHandler.State
update sample