On 16 March 2012 10:23, Nala Ginrut <nalagin...@gmail.com> wrote: > @Daniel: I realized that seems make "get-bytevector-n" return the received > data rather than read-response-body is better. But I'm afraid that it'll > conflict with the definition "get-bytevector-n". Say, we ask for n bytes, > but it returned m bytes less than n. So the user maybe get confused with the > name "get-bytevector-n". >
The definition of get-bytevector-n states what happens when fewer than 'count' bytes are read. Also, get-bytevector-n! says it returns the number of bytes read as an integer. So... I don't see where the conflict is?