Questions tagged [oat++]
Oat++ is an open-source C++ web framework.
18
questions
0
votes
1
answer
104
views
Oat++ framework. Seg fault from getting value of the json parsed to DTO object field. Assertion for ALL fileds at once
MAIN POINT of my question in the end of the text
Okay, I ran into a common problem: if I send JSON without some key:value pair to my oat++ server, parse it with BODY_DTO in my ENDPOINT and then try to ...
0
votes
0
answers
109
views
How to upload a large file with multipart using the TemporaryFile from 1.3.0
I'm trying to create an endpoint and corresponding swagger endpoint_info which uploads a file via multipart. I was hoping to use the TemporaryFile to write the parts then iterate the parts from ...
0
votes
1
answer
164
views
How to add cors in response header of oat++ hls server
auto response = controller->createResponse(Status::CODE_200, controller->livePlaylist->generateForTime(time, 5)->toString());
response->putHeader("Accept-Ranges", "...
0
votes
1
answer
98
views
how oat++ String::loadFromFile deal with `\0`
when I use oatpp::String::loadFromFile(),a question comes to my mind: How loadFromFile deal with \0?
I look up the source code and find loadFromFile read file in binary mod, and then cast the file ...
0
votes
0
answers
12
views
Oat++ Is it possible to detect that the client that sent a request has disconnected and thus execution of the request can be stopped
A client can send a request that requires significant time (minutes) and resources, and then disconnect before the response is ready.
Is there a smart way to detect on I/O level that the connection ...
1
vote
2
answers
239
views
Oat++ response method readBodyToDto example
Has anybody used objectMapper to parse the body of a oatpp::web::client::RequestExecutir::Response using method readBodyToDto. I am building a REST API client and I haven't been able to map the ...
1
vote
1
answer
148
views
Compile error when using QUERY like in documentaion described
I'm following the documentation and got an error during compilation following example:
https://oatpp.io/docs/components/api-controller/#query-parameters-mapping
Visual Studio 2017 is complaining about ...
2
votes
1
answer
490
views
How to set a C++ std::vector to OAT++ Vector
I get a matrix data (float *) from a device, I can convert it to std::vector, and I want to return the data back to callers.
I define a DTO as
class TempMatrixDto : public oatpp::DTO{
DTO_INIT(...
2
votes
1
answer
754
views
oat++ : put DTO in a list of DTOs
I'm trying to create a single big DTO from multiple DTOs, but I am having a lot of trouble to put my DTOs inside a list.
I have two DTOs :
class TypeDocDto : public oatpp::DTO
{
DTO_INIT(...
2
votes
1
answer
275
views
How to response with MIME code on oat++ endpoint
How do I set the MIME code on a endpoint response?
I see no documentation about that available.
1
vote
0
answers
79
views
Images not loading using oat++
I'm doing a simple GET and loading a image.
ENDPOINT("GET",
"/images/{image}",
get_image,
PATH(String, image))
{
std::ifstream ...
-1
votes
1
answer
278
views
Can't connect to Oat++ with other WebSocket libraries
Does Oat++ support the RFC 6455 WebSocket protocol?
I tried to connect to an Oat++ WebSocket server from browsers by js, and from QWebSocket (qt), but they didn't connect.
2
votes
1
answer
645
views
Questions about third-party library(oat++) configuration in visual studio
As a beginner, I want to use oat++ as a third-party library in visual studio, but I encountered some configuration problems.
First I downloaded the source file of the oat++ project and opened it in ...
1
vote
1
answer
357
views
Bug with sending incorrect json doc
I am testing example-crud for applying your framework in my project. But I noticed some bug.
I try to get value from the sent json into std::string with this way:
std::string test = userDto->...
1
vote
1
answer
133
views
OAT++ installation failed on centos 7
I tried install OAT++. But failed.
os information
[root@localhost build]# cat /etc/*-release
CentOS Linux release 7.6.1810 (Core)
How to resolve below error?
[ 84%] Building CXX object test/...
1
vote
1
answer
357
views
How to use Oat++ with OpenSSL instead of LibreSSL?
For various reasons, LibreSSL is not an option here.
What do I need to do to use Oat++ with OpenSSL instead? I have OpenSSL-1.1.1h installed system-wide.
1
vote
1
answer
1k
views
What is the correct way to use oatpp::Enum as a path parameter type in Endpoint?
I'm using Oat++ framework (https://oatpp.io/) to build a REST API.
I want to manage user roles, and I want to have an endpoint to update a single field of a user record - the user role. To achieve ...
1
vote
1
answer
546
views
sending request payload with oatpp
I am a beginner to oatpp and building a crud operation demo application. I want to send only two of these four properties (id, name, email, salary) in dto for change email service, in the request ...