Add format option and batch mode in in_http