finalizing HTTP P2P protocol
authorJoey Hess <joeyh@joeyh.name>
Fri, 5 Jul 2024 19:00:05 +0000 (15:00 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 5 Jul 2024 19:03:51 +0000 (15:03 -0400)
commit2fb3ef4d417cb0233f081d06fcb2f77e2c3d7b19
tree2246214bd383d2604662684459027c8800ae6c8f
parent5e564947d7ce6b1dc18022b86cda55ff894e7070
finalizing HTTP P2P protocol

Managed to avoid netstrings. Actually, using netstrings while streaming
lazy ByteString turns out to be very difficult. So instead, have a
header that specifies the expected amount of data, and then it can just
arrange to send a different amount of data if it needs to indicate
INVALID.

Also improved the interface for GET of a key.
doc/design/p2p_protocol_over_http/draft1.mdwn