use hyper::{Body, Response};
use rotonda_store::match_options::QueryResult;
use crate::{
payload::{RotondaPaMap, RotondaRoute},
units::rib_unit::http::PrefixesApi,
};
impl PrefixesApi {
pub fn mk_dump_response(
res: &QueryResult<RotondaPaMap>,
) -> Response<Body> {
Response::builder()
.header("Content-Type", "text/plain")
.body(format!("{:#?}", res).into())
.unwrap()
}
}