pub mod header;
pub use header::HEADER;
use std::fmt;
pub struct Request {
header: String,
}
impl Default for Request {
fn default() -> Self {
Self::new()
}
}
impl fmt::Display for Request {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}\r\n", self.header)
}
}
impl Request {
pub fn new() -> Self {
Self {
header: HEADER.to_string(),
}
}
}