RESP2 protocol encoder and decoder (fallback for older Redis servers).
RESP2 uses the same array/bulk-string encoding for commands but has fewer response types than RESP3: simple strings, errors, integers, bulk strings, and arrays.
Summary
Functions
Decodes a RESP2 response from binary data.
Returns {:ok, term, rest} or {:continuation, fun} if more data is needed.
Functions
Decodes a RESP2 response from binary data.
Returns {:ok, term, rest} or {:continuation, fun} if more data is needed.