In http2, you can send a header response back 'before' the body of the request is fully sent. Of course, you then have to deal with sending an http 200 OK response and then something failing later. This is fine for us. I am wondering for a streaming upload case of ndjson, if we can do the same. Send back a response before the stream is fully sent.
ie. 1. http1.1 request received 2. We do authentication and if success, we send back http 200 OK while they are streaming a request body in 3. As we process the stream of ndjson, each record, we stream back a success or failure so they can easily pick up where they left off
This solution then allows them to send in 1 record or as many records as they want. I know the webserver we have supports this but not sure about all the clients out there. I am curious if there is anything in the spec that says this is a violation of the spec though?
thanks, Dean