Commit 2e5a1689 authored by Paweł Wegner's avatar Paweł Wegner

Request: use request instead of send.

parent e9dbb4ad
......@@ -39,7 +39,7 @@ CreateDirectoryRequest::CreateDirectoryRequest(std::shared_ptr<CloudProvider> p,
callback(e);
return done(e);
}
send(
this->request(
[=](util::Output stream) {
return provider()->createDirectoryRequest(*parent, name, *stream);
},
......
......@@ -33,7 +33,7 @@ DeleteItemRequest::DeleteItemRequest(std::shared_ptr<CloudProvider> p,
: Request(p) {
set(
[=](Request::Pointer request) {
send(
this->request(
[=](util::Output stream) {
return provider()->deleteItemRequest(*item, *stream);
},
......
......@@ -33,7 +33,7 @@ GetItemDataRequest::GetItemDataRequest(std::shared_ptr<CloudProvider> p,
: Request(p) {
set(
[=](Request::Pointer request) {
send(
this->request(
[=](util::Output input) {
return provider()->getItemDataRequest(id, *input);
},
......
......@@ -37,7 +37,7 @@ MoveItemRequest::MoveItemRequest(std::shared_ptr<CloudProvider> p,
if (destination->type() != IItem::FileType::Directory)
return request->done(
Error{IHttpRequest::Forbidden, "destination not a directory"});
send(
this->request(
[=](util::Output stream) {
return p->moveItemRequest(*source, *destination, *stream);
},
......
......@@ -34,7 +34,7 @@ RenameItemRequest::RenameItemRequest(std::shared_ptr<CloudProvider> p,
: Request(p) {
set(
[=](Request::Pointer request) {
send(
this->request(
[=](util::Output stream) {
return p->renameItemRequest(*item, name, *stream);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment