pub struct ClientResponse {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: Vec<u8>,
}Expand description
Represents the response received from the HTTP/3 server.
Fields§
§status: StatusCode§headers: HeaderMap§body: Vec<u8>Implementations§
Source§impl ClientResponse
Accessors for the response body.
impl ClientResponse
Accessors for the response body.
Sourcepub fn text(&self) -> Result<String, FromUtf8Error>
pub fn text(&self) -> Result<String, FromUtf8Error>
Return the response body interpreted as a UTF-8 string.
Trait Implementations§
Source§impl Clone for ClientResponse
impl Clone for ClientResponse
Auto Trait Implementations§
impl Freeze for ClientResponse
impl RefUnwindSafe for ClientResponse
impl Send for ClientResponse
impl Sync for ClientResponse
impl Unpin for ClientResponse
impl UnsafeUnpin for ClientResponse
impl UnwindSafe for ClientResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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