pub struct HttpResponse { /* private fields */ }Expand description
A fully-read response.
Implementations§
Source§impl HttpResponse
impl HttpResponse
Sourcepub const fn status(&self) -> StatusCode
pub const fn status(&self) -> StatusCode
The status the peer answered with, always 2xx — a refusal is an error.
Sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The Content-Type, with its parameters dropped, or None if the peer
sent none.
Sourcepub const fn session_id(&self) -> Option<McpSessionId>
pub const fn session_id(&self) -> Option<McpSessionId>
The session in force when this response arrived.
Trait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Auto Trait Implementations§
impl Freeze for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnsafeUnpin for HttpResponse
impl UnwindSafe for HttpResponse
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