, Net:: HTTP:: Persistent - , . , . , API, .
: , , multipart POST . push.
- chunk-encoded. , - , . HTTP/1.1 , ( ) , , Content-Length (cf RFC 2616, 4.4). , , -, , (, nginx v1.3.9).
JSON, . RoR . , , , , . , JSON , MessagePack.
, , .
, ( ):
POST /api/endpoint HTTP/1.1
Host: example.com
Content-Type: multipart/mixed; boundary="---boundary-"
Transfer-Encoding: chunked
Content-Encoding: deflate
Content-Type: application/json
{...}
Content-Type: application/json
{...}
mime multipart/mixed, , . , . , , , multipart/mixed . deflate gzip , CRC32. ( ).