1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

add H1 transport

This commit is contained in:
Nikolay Kim
2018-10-02 17:30:29 -07:00
parent ae5c4dfb78
commit 2710f70e39
11 changed files with 284 additions and 74 deletions

View File

@ -1,4 +1,4 @@
use std::net::Shutdown;
use std::net::{Shutdown, SocketAddr};
use std::{io, time};
use actix_net::ssl::TlsStream;
@ -12,6 +12,11 @@ impl<Io: IoStream> IoStream for TlsStream<Io> {
Ok(())
}
#[inline]
fn peer_addr(&self) -> Option<SocketAddr> {
self.get_ref().get_ref().peer_addr()
}
#[inline]
fn set_nodelay(&mut self, nodelay: bool) -> io::Result<()> {
self.get_mut().get_mut().set_nodelay(nodelay)