Merge pull request #973 from penberg/flush
Add flush() to front-end messages
This commit is contained in:
commit
9774c330f1
@ -271,6 +271,12 @@ where
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn flush(buf: &mut BytesMut) {
|
||||||
|
buf.put_u8(b'H');
|
||||||
|
write_body(buf, |_| Ok::<(), io::Error>(())).unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn sync(buf: &mut BytesMut) {
|
pub fn sync(buf: &mut BytesMut) {
|
||||||
buf.put_u8(b'S');
|
buf.put_u8(b'S');
|
||||||
|
Loading…
Reference in New Issue
Block a user