Update http app to support recent gen_http_api version