pub fn dynamic_error_response(&mut self, error_message: String, files: DynamicFiles) {
        match files.get("/error_page.html") {
            Some(resource) => {
                self.add_content_type("_.html".to_string());
                self.body = build_error_html(self, resource.to_string(), error_message);
            },
            None => return
        }
    }
/// Creates a default error page response
Creates a default error page response
Creates a default error page response
pub fn dynamic_error_response(&mut self, error_message: String, files: DynamicFiles) {
        match files.get("/error_page.html") {
            Some(resource) => {
                self.add_content_type("_.html".to_string());
                self.body = build_error_html(self, resource.to_string(), error_message);
            },
            None => return
        }
    }
pub fn dynamic_error_response ( & mut self , error_message : String , files : DynamicFiles ) { match files . get ( " " ) { Some ( resource ) => { self . add_content_type ( " " . to_string ( ) ) ; self . body = build_error_html ( self , resource . to_string ( ) , error_message ) ; } , None => return } }
Creates a default error page response
Creates a default error page response
&mut self
error_message
String
files
DynamicFiles
&mut self
error_message
String
files
DynamicFiles