aria2-protocol 0.3.10

Multi-protocol networking stack for aria2-rust: HTTP/HTTPS client, FTP/SFTP, full BitTorrent (DHT/PEX/MSE), and Metalink V3/V4 parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fmt;

/// Malformed or incomplete HTTP/1.x response-header input.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct HttpHeaderError(pub String);

impl fmt::Display for HttpHeaderError {
    fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
        formatter.write_str(&self.0)
    }
}

impl std::error::Error for HttpHeaderError {}

pub type Result<T> = std::result::Result<T, HttpHeaderError>;