Replies: 1 comment 1 reply
-
Sounds like you want access to the frames that messages are made of, then, no? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have seen similar discussions here, though my usecase seems to be a bit different.
I wonder if uwebsockets supports the following usecase.
A client has a large blob of binary data that it wants to send to the server via a POST.
The server runs on a constrained device and should be able to read and process the headers, but should not try to read (from network stack) e.g. decode the payload, nor should it read the entire payload into it's RAM.
The binary payload is larger than the read buffer in the server.
After processing the headers, I need to be able to read the payload "byte by byte from the wire" and then process these chunks (I do not mean actual http chunking here).
So what I would need technically in the server is something like a read_payload(void*, size_t) callback/function, that would be called multiple times, in order to "pump" the payload chunk by chunk.
Is that supported?
Beta Was this translation helpful? Give feedback.
All reactions