Data frame (#50)

* Rename DataFlag -> DataFlags
* Polish Data frame API
This commit is contained in:
Carl Lerche
2017-09-05 10:00:05 -07:00
committed by GitHub
parent bbcfffee46
commit b4fa5134f9
5 changed files with 121 additions and 74 deletions

View File

@@ -46,3 +46,15 @@ fn read_data_padding() {
assert_closed!(codec);
}
#[test]
fn read_data_stream_id_zero() {
let mut codec = raw_codec! {
read => [
0, 0, 5, 0, 0, 0, 0, 0, 0,
"hello", // Data
];
};
poll_err!(codec);
}