data is initialized to str.c_str(). It's an artifact fromt the equivalent struct in http_rest_proxy. I wonder if it speeds things up, by avoiding invocations to c_str()... I don't think it would matter here, but I left it anyway as it is actually a minor concern one side or another.