More tests
This commit is contained in:
@@ -38,6 +38,12 @@ pub fn main() {
|
||||
|
||||
// Receive a request
|
||||
conn.into_future()
|
||||
.then(|res| {
|
||||
let (frame, conn) = res.unwrap();
|
||||
println!("Zomg frame; {:?}", frame);
|
||||
|
||||
conn.into_future()
|
||||
})
|
||||
.then(|res| {
|
||||
let (frame, conn) = res.unwrap();
|
||||
println!("Zomg frame; {:?}", frame);
|
||||
@@ -47,12 +53,6 @@ pub fn main() {
|
||||
|
||||
conn.send_response(1.into(), response, false)
|
||||
})
|
||||
.then(|res| {
|
||||
let conn = res.unwrap();
|
||||
println!("... sending data frame");
|
||||
|
||||
conn.send_data(1.into(), "hello".into(), false)
|
||||
})
|
||||
.then(|res| {
|
||||
let conn = res.unwrap();
|
||||
println!("... sending next frame");
|
||||
|
||||
Reference in New Issue
Block a user