pub struct IncomingResponse { /* private fields */ }
Expand description
Represents an incoming HTTP Response.
Implementations§
Source§impl IncomingResponse
impl IncomingResponse
Sourcepub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Returns the status code from the incoming response.
Source§impl IncomingResponse
impl IncomingResponse
Sourcepub fn headers(&self) -> Headers
pub fn headers(&self) -> Headers
Returns the headers from the incoming response.
The returned headers
resource is immutable: set
, append
, and
delete
operations will fail with header-error.immutable
.
This headers resource is a child: it must be dropped before the parent
incoming-response
is dropped.
Trait Implementations§
Source§impl Debug for IncomingResponse
impl Debug for IncomingResponse
Source§impl TryFromIncomingResponse for IncomingResponse
impl TryFromIncomingResponse for IncomingResponse
Source§type Error = Infallible
type Error = Infallible
The error if conversion fails
Source§fn try_from_incoming_response<'async_trait>(
resp: IncomingResponse,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
fn try_from_incoming_response<'async_trait>(
resp: IncomingResponse,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
Turn the
IncomingResponse
into the typeSource§impl WasmResource for IncomingResponse
impl WasmResource for IncomingResponse
Auto Trait Implementations§
impl Freeze for IncomingResponse
impl RefUnwindSafe for IncomingResponse
impl Send for IncomingResponse
impl Sync for IncomingResponse
impl Unpin for IncomingResponse
impl UnwindSafe for IncomingResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more