mod dispatcher;
mod guard;
use roa_core::http::{Method, StatusCode};
use roa_core::{throw, Result};
fn method_not_allowed(method: &Method) -> Result {
throw!(
StatusCode::METHOD_NOT_ALLOWED,
format!("Method {} not allowed", method)
)
}
pub use dispatcher::{
connect, delete, get, head, options, patch, post, put, trace, Dispatcher,
};
pub use guard::{allow, deny, Guard};