pub struct HttpHandlerConfig {
pub base_path: String,
pub allow_cors: bool,
pub cors_origins: Vec<String>,
pub timeout: Duration,
pub max_body_size: usize,
}Expand description
Configuration for the HTTP request handler.
Fields§
§base_path: StringBase path for MCP endpoints (e.g., “/mcp/v1”).
allow_cors: boolWhether to allow CORS requests.
cors_origins: Vec<String>Allowed CORS origins (“*” for all).
timeout: DurationRequest timeout.
max_body_size: usizeMaximum request body size in bytes.
Trait Implementations§
Source§impl Clone for HttpHandlerConfig
impl Clone for HttpHandlerConfig
Source§fn clone(&self) -> HttpHandlerConfig
fn clone(&self) -> HttpHandlerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpHandlerConfig
impl Debug for HttpHandlerConfig
Source§impl Default for HttpHandlerConfig
impl Default for HttpHandlerConfig
Source§fn default() -> HttpHandlerConfig
fn default() -> HttpHandlerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpHandlerConfig
impl RefUnwindSafe for HttpHandlerConfig
impl Send for HttpHandlerConfig
impl Sync for HttpHandlerConfig
impl Unpin for HttpHandlerConfig
impl UnwindSafe for HttpHandlerConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).