How do I set the MIME code on a endpoint response?
I see no documentation about that available.
You just have to add a Content-Type header to the response:
auto response = createResponse(Status::CODE_200, "OK");
response->putHeader("Content-Type", "image/jpeg");
return response;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With