django icon indicating copy to clipboard operation
django copied to clipboard

Stream support

Open ai opened this issue 5 years ago • 0 comments

We need to add stream support to protocol processing as it requires in docs.

Pseudocode:

- answers = [get_resend(), get_access(), get_processed()]
- response.send(json: answers)
+ response.write("[")
+ resporce.write(get_resend())
+ response.write(",")
+ resporce.write(get_access())
+ response.write(",")
+ resporce.write(get_processed())
+ resporce.write("]")

We do not need async support here. Good old sync way is enough.

ai avatar Apr 16 '20 15:04 ai