You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to implement an API to return an image as raw binary. Content-type should be image/png .
So when this API is opened in web browser, the image is presented.
Hi
I want to implement an API to return an image as raw binary. Content-type should be
image/png
.So when this API is opened in web browser, the image is presented.
After reading the example https://github.com/juhaku/utoipa/blob/d020f92a0446adc7e99999aa9e1be63e95728fbb/examples/rocket-todo/src/main.rs, I still don't find a way.
The
IntoResponses
andToResponse
traits seems does not allow to return raw binary body?The text was updated successfully, but these errors were encountered: