pub struct BrowserResponse(/* private fields */);Expand description
The response to a fetch request made in the browser.
Implementations§
Trait Implementations§
Source§impl<E> ClientRes<E> for BrowserResponsewhere
E: FromServerFnError,
impl<E> ClientRes<E> for BrowserResponsewhere
E: FromServerFnError,
Source§fn try_into_string(self) -> impl Future<Output = Result<String, E>> + Send
fn try_into_string(self) -> impl Future<Output = Result<String, E>> + Send
Attempts to extract a UTF-8 string from an HTTP response.
Source§fn try_into_bytes(self) -> impl Future<Output = Result<Bytes, E>> + Send
fn try_into_bytes(self) -> impl Future<Output = Result<Bytes, E>> + Send
Attempts to extract a binary blob from an HTTP response.
Source§fn try_into_stream(
self,
) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, E>
fn try_into_stream( self, ) -> Result<impl Stream<Item = Result<Bytes, Bytes>> + Send + 'static, E>
Attempts to extract a binary stream from an HTTP response.
Source§fn status_text(&self) -> String
fn status_text(&self) -> String
Status text for the status code.
Source§fn location(&self) -> String
fn location(&self) -> String
The
Location header or (if none is set), the URL of the response.Source§fn has_redirect(&self) -> bool
fn has_redirect(&self) -> bool
Whether the response has the
REDIRECT_HEADER set.Auto Trait Implementations§
impl Freeze for BrowserResponse
impl RefUnwindSafe for BrowserResponse
impl Send for BrowserResponse
impl Sync for BrowserResponse
impl Unpin for BrowserResponse
impl UnwindSafe for BrowserResponse
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.