HomeSoftware Heritage

client: Do not depend on how the server chunks the response

Description

client: Do not depend on how the server chunks the response

Currently, the server uses HTTP chunked encoding to send object ids
one by one, each in its own HTTP frame.

I think this is a mistake to rely on such a detail of the HTTP protocol
in a high-level API like this.

Additionally, a future commit will rewrite the server to use Flask
instead of aiohttp, which does not allow this kind of fine-grained
control about HTTP chunks.

Details

Provenance
vlorentzAuthored on Mar 1 2022, 3:13 PM
vlorentzPushed on Mar 2 2022, 5:25 PM
Parents
rDOBJSb159f04b8d59: Remove method add_stream from the RPC API.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27237
Build 42609: test-and-buildJenkins console · Jenkins