add --with-http-api option