tcp_request/
lib.rs

1//! tcp-request
2//!
3//! A Rust library for sending raw TCP requests, with features
4//! for handling responses, managing redirects, and working
5//! with compressed data over TCP connections.
6
7pub(crate) mod common;
8pub(crate) mod request;
9pub(crate) mod response;
10
11pub use {request::*, response::*};
12
13use common::*;
14
15use std::{
16    error::Error as StdError,
17    fmt::Debug,
18    fmt::{self, Display},
19    io::{Read, Write},
20    net::TcpStream,
21    sync::{Arc, RwLock},
22    time::Duration,
23};
24
25#[cfg(test)]
26use std::{
27    sync::Mutex,
28    thread::{JoinHandle, spawn},
29    time::Instant,
30};