sozu
sozu copied to clipboard
Move away from BufferQueue as basic element for everything
the BufferQueue
implementation is very specific to the HTTP 1 proxy, awkward to use in the Pipe
protocol, and probably unusable for HTTP/2.
I propose the following steps:
- use a pool of
Buffer
instead ofBufferQueue
, and use that pool to initialize aBufferQueue
- use
Buffer
directly in protocols likePipe
- move
BufferQueue
specific details out of the HTTP 1 parser - use the
Buffer
pool in the HTTP/2 parser
side note: should we move to the bytes crate instead?