tcp-request 2.3.16

A Rust library for sending raw TCP requests, with features for handling responses, managing redirects, and working with compressed data over TCP connections.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Error types for request operations.
#[derive(Debug)]
pub enum RequestError {
    /// Invalid URL provided.
    InvalidUrl,
    /// Failed to establish TCP connection.
    TcpStreamConnectError,
    /// General request error.
    RequestError,
    /// Error reading from connection.
    ReadConnectionError,
    /// Failed to set read timeout.
    SetReadTimeoutError,
    /// Failed to set write timeout.
    SetWriteTimeoutError,
    /// Error reading response.
    ReadResponseError,
}