Skip to content

Instantly share code, notes, and snippets.

#![allow(unused_imports)]
use std::net::TcpListener;
use std::io::prelude::*;
struct Response <'a> {
length: i32,
header: &'a [u8],
body: &'a [u8],
}