Add format option to in_http. fixes #302