#![no_std]
extern crate alloc;
use alloc::borrow::Cow;
pub trait Request {
fn path(&self) -> Cow<'_, str>;
fn method(&self) -> Cow<'_, str>;
}
#[cfg(feature = "http")]
impl<T> Request for http::Request<T> {
fn path(&self) -> Cow<'_, str> {
self.uri().path().into()
}
fn method(&self) -> Cow<'_, str> {
self.method().as_str().into()
}
}