lib/curl/Request: add constructor without "url" parameter
commit74eac1d449ac2ac25b88e307c0a513e44cc29d96
authorMax Kellermann <max@musicpd.org>
Mon, 15 Jan 2018 09:35:48 +0000 (15 10:35 +0100)
committerMax Kellermann <max@musicpd.org>
Mon, 15 Jan 2018 09:36:48 +0000 (15 10:36 +0100)
tree98aa8dbcb37e2536fe3eaf3f21bd270c61d9e167
parent96676f8f3b3fdf08322ab5aec3991c36f0004768
lib/curl/Request: add constructor without "url" parameter

Allows constructing the request first and set the URL later.  This is
needed because curl_easy_escape() is needed to construct the URL,
which however needs the CURL "easy" handle created by the Request class.
src/lib/curl/Request.cxx
src/lib/curl/Request.hxx