use crate::body::Body as RawBody;
pub type Body = RawBody;
pub type Request = http::Request<Body>;
pub type Response = http::Response<Body>;
pub use super::fetch::fetch;
pub type RequestError = super::http_service::land::http::http_outgoing::RequestError;
pub type RequestOptions = super::http_service::land::http::http_outgoing::RequestOptions;
pub type RedirectPolicy = super::http_service::land::http::http_types::RedirectPolicy;
pub fn error_response(status: http::StatusCode, message: String) -> Response {
let mut response = Response::new(message.into());
*response.status_mut() = status;
response
}
pub type Error = anyhow::Error;