pub struct HttpConfig {
pub bind: SocketAddr,
pub token: Option<Secret>,
pub allow_hosts: Vec<String>,
pub allow_origins: Vec<String>,
pub stateful: bool,
}Expand description
How to serve MCP over HTTP, once the operator has asked for it.
Fields§
§bind: SocketAddrWhere to listen.
token: Option<Secret>The bearer token, or None when the operator said there is none.
allow_hosts: Vec<String>Host headers to answer for beyond the ones always allowed.
allow_origins: Vec<String>Browser origins to answer for.
stateful: boolWhether to keep sessions.
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin for HttpConfig
impl UnwindSafe for HttpConfig
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