Rename Request() to Send().

This commit is contained in:
Chunting Gu
2019-08-26 12:13:25 +08:00
parent 1a21989b2e
commit ad1016734e
10 changed files with 196 additions and 236 deletions
+1 -2
View File
@@ -26,8 +26,7 @@ int main(int argc, char* argv[]) {
webcc::ClientSession session;
try {
auto r = session.Request(webcc::RequestBuilder{}.Get(url)(),
true); // Stream the response data to file.
auto r = session.Send(webcc::RequestBuilder{}.Get(url)(), true);
if (auto file_body = r->file_body()) {
file_body->Move(path);