use http::HeaderMap;
#[derive(Clone)]
pub struct ActionContext {
pub headers: HeaderMap,
pub span: tracing::Span,
}
impl ActionContext {
pub fn new(headers: HeaderMap) -> Self {
Self {
headers,
span: tracing::Span::current(),
}
}
pub fn synthetic() -> Self {
Self {
headers: HeaderMap::new(),
span: tracing::Span::current(),
}
}
}