Add support to directly send binary data in http reply #3013
Closed
achillis2016
started this conversation in
Feature requests
Replies: 2 comments 2 replies
-
This is not a Mongoose issue. This is you requesting something. Please don't add issues requesting features, there's a feature request section |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please see our documentation, and follow the guidelines in our tutorials. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thanks so much for your hard work on this project mongoose, I love it .
Sometimes I need to directly send binary data in http reply, but I found it hard.
I know the data length before send ,so I don't want to use mg_http_write_chunk。
I have to build http response header by myself,but function mg_http_status_code_str is not exposed.
What I want is a function as below:
then I can use this function to directly send binary data as response :
Otherwise, the function mg_http_status_code_str is very helpful, I suggest that this function can be exposed, just add a declare in mongoose.h and remove the word "static" before the function body.
Beta Was this translation helpful? Give feedback.
All reactions