/// Produces a response returning some plain text.
Produces a response returning some plain text.
Produces a response returning some plain text .
fn text<T: AsRef<str> + ?Sized>(sock: TcpStream, text: &T) -> Self {
        Self::from_content(
            sock,
            "200 OK",
            "text/plain;charset=utf-8",
            text.as_ref().as_bytes()
        )
    }
fn text < T : AsRef < str > + ? Sized > ( sock : TcpStream , text : & T ) -> Self { Self :: from_content ( sock , " " , " " , text . as_ref ( ) . as_bytes ( ) ) }
Produces a response returning some plain text.
Produces a response returning some plain text .
sock
TcpStream
text
&T