Page 1 of 1

ESP HTTP Server + Expect: 100-continue

Posted: Sat Nov 25, 2023 2:51 pm
by hoeken
I'm working on a wrapper library for the ESP-IDF Http Server located here: https://github.com/hoeken/PsychicHTTP/

I'm trying to implement support for the Expect: 100-continue header, for uploads to the server. https://developer.mozilla.org/en-US/doc ... ers/Expect

Basically, the client sends this header + content type and content length, then the server has a chance to reject it before the whole upload file is written.

My question is: In my request callback, I'd like to immediately send the response code, handle the upload, and then send the response body at a later point. Is this possible, and how would you go about this?