pub struct AllowedHostsInput<'a> {
pub bind_host: &'a str,
pub port: u16,
pub extra_hosts: &'a [String],
pub public_url: Option<&'a str>,
pub public_url_label: &'a str,
}Expand description
Inputs needed to compute the allow-listed Host header values for an
inbound MCP HTTP server.
Fields§
§bind_host: &'a str§port: u16§extra_hosts: &'a [String]§public_url: Option<&'a str>§public_url_label: &'a strLabel used in diagnostic logs when public_url fails to parse or
contains a wildcard host — typically the product’s env var name (for
example SOMA_MCP_PUBLIC_URL) so operators can trace a warning back
to the setting that produced it. Pass a generic label such as
"public_url" if no product-specific name applies.
Trait Implementations§
Source§impl<'a> Clone for AllowedHostsInput<'a>
impl<'a> Clone for AllowedHostsInput<'a>
Source§fn clone(&self) -> AllowedHostsInput<'a>
fn clone(&self) -> AllowedHostsInput<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AllowedHostsInput<'a>
impl<'a> Debug for AllowedHostsInput<'a>
impl<'a> Copy for AllowedHostsInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for AllowedHostsInput<'a>
impl<'a> RefUnwindSafe for AllowedHostsInput<'a>
impl<'a> Send for AllowedHostsInput<'a>
impl<'a> Sync for AllowedHostsInput<'a>
impl<'a> Unpin for AllowedHostsInput<'a>
impl<'a> UnsafeUnpin for AllowedHostsInput<'a>
impl<'a> UnwindSafe for AllowedHostsInput<'a>
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