Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

348 B
Raw Blame
use serde::de::DeserializeOwned;
use warp::Filter;

mod error;
mod state;

pub mod routes;
pub use error::handle_error;
pub use state::{with_state, AppState};

pub fn json_body<T: DeserializeOwned + Send>(
) -> impl Filter<Extract = (T,), Error = warp::Rejection> + Clone {
    warp::body::content_length_limit(1024 * 16).and(warp::body::json())
}