Struct ockam_core::api::Request
source · [−]pub struct Request<'a> { /* private fields */ }
Expand description
A request header.
Implementations
sourceimpl<'a> Request<'a>
impl<'a> Request<'a>
pub fn new<P: Into<Cow<'a, str>>>(method: Method, path: P, has_body: bool) -> Self
pub fn builder<P: Into<Cow<'a, str>>>(
method: Method,
path: P
) -> RequestBuilder<'a>
pub fn get<P: Into<Cow<'a, str>>>(path: P) -> RequestBuilder<'a>
pub fn post<P: Into<Cow<'a, str>>>(path: P) -> RequestBuilder<'a>
pub fn put<P: Into<Cow<'a, str>>>(path: P) -> RequestBuilder<'a>
pub fn delete<P: Into<Cow<'a, str>>>(path: P) -> RequestBuilder<'a>
pub fn patch<P: Into<Cow<'a, str>>>(path: P) -> RequestBuilder<'a>
pub fn id(&self) -> Id
pub fn path(&self) -> &str
pub fn path_segments<const N: usize>(&self) -> Segments<'_, N>
pub fn method(&self) -> Option<Method>
pub fn has_body(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
Blanket Implementations
sourceimpl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more