rusty_request/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{
    net::TcpStream,
    sync::{Arc, Mutex},
};

mod requests;

pub struct Get<'get> {
    path: String,
    stream: Arc<Mutex<&'get TcpStream>>,
    match_path: Option<String>,
    content: Option<String>,
}