Struct pretend::Response [−][src]
pub struct Response<T> { /* fields omitted */ }
Expand description
Response type
Implementations
impl<T> Response<T>
[src]
impl<T> Response<T>
[src]pub fn new(status: StatusCode, headers: HeaderMap, body: T) -> Self
[src]
pub fn new(status: StatusCode, headers: HeaderMap, body: T) -> Self
[src]Constructor
pub fn status(&self) -> &StatusCode
[src]
pub fn status(&self) -> &StatusCode
[src]HTTP status
pub fn into_parts(self) -> (StatusCode, HeaderMap, T)
[src]
pub fn into_parts(self) -> (StatusCode, HeaderMap, T)
[src]Consume this instance to return the status, headers and body
Auto Trait Implementations
impl<T> RefUnwindSafe for Response<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Response<T> where
T: Send,
T: Send,
impl<T> Sync for Response<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Response<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Response<T> where
T: UnwindSafe,
T: UnwindSafe,