1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
mod httpserver;
pub use httpserver::*;

impl Default for HttpResponse {
    /// Create default response with status 200(OK), empty headers, empty body
    fn default() -> Self {
        HttpResponse {
            status_code: 200,
            status: "OK".to_string(),
            header: Default::default(),
            body: Vec::default(),
        }
    }
}