lvh / async-pep

Draft PEP for asynchronous IO
ISC License
62 stars 7 forks source link

LineReceiver ought to be a bit more general (ChunkReceiver) #8

Closed lvh closed 13 years ago

lvh commented 13 years ago

LineReceiver really is a protocol for arbitrarily delimited protocols.

fmayer commented 13 years ago

I also suggest that the HTTP protocol implements the interface.

lvh commented 13 years ago

Interface? I thought ChunkReceiver was a concrete class.

fmayer commented 13 years ago

I thought we were separating the callback and the Protocol; I meant that HTTP calls the same method as a ChunkReceiver.

fmayer commented 13 years ago

I was being a bit vague. I was thinking about making a uniform behaviour for all protocols that just carry data.