Start working on server
This commit is contained in:
@@ -62,6 +62,8 @@ impl<T, P> Stream for Connection<T, P>
|
||||
fn poll(&mut self) -> Poll<Option<Self::Item>, ConnectionError> {
|
||||
use frame::Frame::*;
|
||||
|
||||
trace!("Connection::poll");
|
||||
|
||||
let frame = match try!(self.inner.poll()) {
|
||||
Async::Ready(f) => f,
|
||||
Async::NotReady => {
|
||||
@@ -72,6 +74,8 @@ impl<T, P> Stream for Connection<T, P>
|
||||
}
|
||||
};
|
||||
|
||||
trace!("received; frame={:?}", frame);
|
||||
|
||||
let frame = match frame {
|
||||
Some(Headers(v)) => {
|
||||
// TODO: Update stream state
|
||||
|
||||
Reference in New Issue
Block a user