File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class MyController : public oatpp::web::server::api::ApiController {
72
72
73
73
Action act () override {
74
74
/* return Action to start child coroutine to read body */
75
- return request->readBodyToStringAsync (this , &EchoStringBody::returnResponse);
75
+ return request->readBodyToStringAsync (). callbackTo ( &EchoStringBody::returnResponse);
76
76
}
77
77
78
78
Action returnResponse (const oatpp::String& body){
@@ -92,7 +92,7 @@ class MyController : public oatpp::web::server::api::ApiController {
92
92
ENDPOINT_ASYNC_INIT (EchoDtoBody)
93
93
94
94
Action act () override {
95
- return request->readBodyToDtoAsync <MessageDto>(this , &EchoDtoBody::returnResponse, controller->getDefaultObjectMapper ());
95
+ return request->readBodyToDtoAsync <MessageDto>(controller->getDefaultObjectMapper ()). callbackTo (&EchoDtoBody::returnResponse );
96
96
}
97
97
98
98
Action returnResponse (const MessageDto::ObjectWrapper& body){
You can’t perform that action at this time.
0 commit comments