pub fn new(
        sock: TcpStream,
        origins: OriginsHistory,
    ) -> Self {
        HttpConnection::Read(ReadRequest::new(sock, origins))
    }
/// Creates a new connection for a socket and the history.
Creates a new connection for a socket and the history.
Creates a new connection for a socket and the history .
pub fn new(
        sock: TcpStream,
        origins: OriginsHistory,
    ) -> Self {
        HttpConnection::Read(ReadRequest::new(sock, origins))
    }
pub fn new ( sock : TcpStream , origins : OriginsHistory , ) -> Self { HttpConnection :: Read ( ReadRequest :: new ( sock , origins ) ) }
Creates a new connection for a socket and the history.
Creates a new connection for a socket and the history .
sock
TcpStream
origins
OriginsHistory
sock
TcpStream
origins
OriginsHistory