6QObject::connect(reply, &QNetworkReply::finished,
this, [reply]() {
8 QRestReply restReply(reply);
9 if (restReply.isSuccess())
17manager->get(request,
this, [
this](QRestReply &reply) {
18 if (reply.isSuccess()) {
23manager->get(request,
this, &MyClass::handleFinished);
30manager->post(request, myJson,
this, [
this](QRestReply &reply) {
31 if (!reply.isSuccess()) {
34 if (std::optional json = reply.readJson()) {
42manager->get(request,
this, [
this](QRestReply &reply) {
43 if (!reply.isSuccess())
45 if (std::optional json = reply.readJson())
52manager->get(request, myData,
this, [
this](QRestReply &reply) {
53 if (reply.isSuccess())
60manager->post(request, myData,
this, [
this](QRestReply &reply) {
61 if (reply.isSuccess())
68manager->put(request, myData,
this, [
this](QRestReply &reply) {
69 if (reply.isSuccess())
76manager->head(request,
this, [
this](QRestReply &reply) {
77 if (reply.isSuccess())
84manager->deleteResource(request,
this, [
this](QRestReply &reply) {
85 if (reply.isSuccess())
92manager->sendCustomRequest(request,
"MYMETHOD", myData,
this, [
this](QRestReply &reply) {
93 if (reply.isSuccess())
100manager->patch(request, myData,
this, [
this](QRestReply &reply) {
101 if (reply.isSuccess())