If we have a long list of JSON entries, we could put those on an HTTP body so we could parse the whole body of JSON with something like
HTTP/1.1 200 OK Date: Sun, 10 Oct 2010 23:26:07 GMT Server: Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g Last-Modified: Sun, 26 Sep 2010 22:04:35 GMT ETag: "45b6-834-49130cc1182c0" Accept-Ranges: bytes Content-Length: (big number) Connection: close Content-Type: application/json [ "imagine", "this", "list", "having", "thousands", "of", "entries", ... ]
Alternatively, we could split up the body into new lines.
Is there a way to write the HTTP body in a streaming manner (line by line) and also read the HTTP body in a streaming manner? Or is there no point since the HTTP body is always buffered?