pub struct HttpReply {
pub content_type: String,
pub body: String,
pub session_id: Option<String>,
}Available on crate feature
mcp only.Expand description
A single HTTP response from an MCP endpoint, normalised across the two streamable-HTTP body shapes.
Fields§
§content_type: StringContent-Type of the response body (lower-cased, no parameters).
body: StringRaw response body bytes.
session_id: Option<String>Value of the Mcp-Session-Id response header, if present.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpReply
impl RefUnwindSafe for HttpReply
impl Send for HttpReply
impl Sync for HttpReply
impl Unpin for HttpReply
impl UnsafeUnpin for HttpReply
impl UnwindSafe for HttpReply
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