feather 0.8.1

Feather: A minimal HTTP framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
// I get it its kinda pointess to open a new module for just a 2 types but maybe I'll add more features to the errors ;)

use feather_runtime::http::{Request, Response};
use std::error::Error;

type BoxError = Box<dyn Error>;

/// Type Alias for the Error Handling Function: `Box<dyn Fn(BoxError,&Request,&mut Response)>`
pub type ErrorHandler = Box<dyn Fn(BoxError, &Request, &mut Response) + Send + Sync>;