pub struct HttpServerConfig {Show 23 fields
pub host: String,
pub port: u16,
pub project_root: PathBuf,
pub auth_token: Option<String>,
pub a2a_signing_key: Option<String>,
pub a2a_recipient_id: Option<String>,
pub a2a_tenant_id: Option<String>,
pub a2a_project_id: Option<String>,
pub a2a_peers: RelayPeerTableV1,
pub a2a_quotas: RelayQuotaConfig,
pub a2a_task_authority: TaskAuthorityConfigV1,
pub stateful_mode: bool,
pub json_response: bool,
pub disable_host_check: bool,
pub allowed_hosts: Vec<String>,
pub max_body_bytes: usize,
pub max_concurrency: usize,
pub max_rps: u32,
pub rate_burst: u32,
pub request_timeout_ms: u64,
pub oauth: bool,
pub oauth_issuer: Option<String>,
pub oauth_state_dir: Option<PathBuf>,
}Fields§
§host: String§port: u16§project_root: PathBuf§auth_token: Option<String>§a2a_signing_key: Option<String>§a2a_recipient_id: Option<String>§a2a_tenant_id: Option<String>§a2a_project_id: Option<String>§a2a_peers: RelayPeerTableV1§a2a_quotas: RelayQuotaConfig§stateful_mode: bool§json_response: bool§disable_host_check: bool§allowed_hosts: Vec<String>§max_body_bytes: usize§max_concurrency: usize§max_rps: u32§rate_burst: u32§request_timeout_ms: u64§oauth: boolServe OAuth 2.1 for remote MCP clients (--oauth, ux16).
oauth_issuer: Option<String>The public origin clients reach this instance at (--oauth-issuer).
oauth_state_dir: Option<PathBuf>Where OAuth clients and token hashes are kept (default: data dir).
Implementations§
Trait Implementations§
Source§impl Clone for HttpServerConfig
impl Clone for HttpServerConfig
Source§impl Debug for HttpServerConfig
impl Debug for HttpServerConfig
Auto Trait Implementations§
impl Forget for HttpServerConfig
impl Freeze for HttpServerConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RelayPeerConfigV1>: Freeze,
PhantomData<TaskPeerTrustV1>: Freeze,
PhantomData<TaskCapabilityGrantV1>: Freeze,
PhantomData<String>: Freeze,
impl Move for HttpServerConfig
impl RefUnwindSafe for HttpServerConfig
impl Send for HttpServerConfigwhere
RawVecInner: Send,
impl Sync for HttpServerConfigwhere
RawVecInner: Sync,
impl Unpin for HttpServerConfig
impl UnsafeUnpin for HttpServerConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RelayPeerConfigV1>: UnsafeUnpin,
PhantomData<TaskPeerTrustV1>: UnsafeUnpin,
PhantomData<TaskCapabilityGrantV1>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for HttpServerConfigwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more