rust-chat
rust-chat copied to clipboard
why don't use pipelining ?
why don"t use pipelining techniques for this task ?
struct HttpParser { current_key: Option<String>, headers: Rc<RefCell<HashMap<String, String>>> }
instead of using Rc<RefCell<>>
for headers, we can use 2 threads and pipelining them to update headers !