AcornHTTP upgrade
Pages: 1 2
Dave Higton (1515) 3534 posts |
Reviving this thread: I eventually realised that chunked transfer is dead easy to implement. So, except for the problem of status, it would appear to be easy to set a flag to use chunked transfer and HTTP/1.1, then send as many chunks as necessary, each with its length specified, finally sending a zero-length chunk. Clearly this is only going to work if the status question can be solved. Is it OK to not return from the call to send a chunk until it’s all been sent (or it’s failed)? Or do we require the user to keep requesting status, continuing to present the same buffer, until the data have gone? |
Dave Higton (1515) 3534 posts |
Before AcornHTTP, was there a module simply called HTTP, that did more or less the same thing? |
Rick Murray (539) 13850 posts |
Would that not risk suspending everything? Because the time it takes to send data cannot be guaranteed.
Yeah, the API is a bit naff in that respect. But it’s probably the simplest way within the original framework. |
Pages: 1 2