1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +02:00

expose low level data

This commit is contained in:
Nikolay Kim
2018-05-20 20:37:19 -07:00
parent 082ff46041
commit 483db7028c
4 changed files with 43 additions and 9 deletions

View File

@@ -71,6 +71,16 @@ impl<H: 'static> Writer for H2Writer<H> {
self.written
}
#[inline]
fn set_date(&self, dst: &mut BytesMut) {
self.settings.set_date(dst)
}
#[inline]
fn buffer(&self) -> &mut BytesMut {
self.buffer.get_mut()
}
fn start(
&mut self, req: &mut HttpInnerMessage, msg: &mut HttpResponse,
encoding: ContentEncoding,