use crate::formats::http::BodyRenderStatus;
pub(in crate::formats::http) struct ParsedBody {
text: String,
status: BodyRenderStatus,
rendered_truncated: bool,
}
impl ParsedBody {
#[inline(always)]
#[must_use]
pub(in crate::formats::http) const fn new(
text: String,
status: BodyRenderStatus,
rendered_truncated: bool,
) -> Self {
Self {
text,
status,
rendered_truncated,
}
}
#[must_use]
#[inline(always)]
pub(in crate::formats::http) fn into_parts(self) -> (String, BodyRenderStatus, bool) {
(self.text, self.status, self.rendered_truncated)
}
}