modules/http_client: add max_time setting to limit request duration