pub struct AuthenticatedHttpTransport { /* private fields */ }Expand description
HTTP transport with authentication support
Implementations§
Source§impl AuthenticatedHttpTransport
impl AuthenticatedHttpTransport
Sourcepub fn new(base_url: impl Into<String>, auth: AuthConfig) -> Result<Self>
pub fn new(base_url: impl Into<String>, auth: AuthConfig) -> Result<Self>
Create a new authenticated HTTP transport
Sourcepub fn with_max_response_size(self, size: usize) -> Self
pub fn with_max_response_size(self, size: usize) -> Self
Set maximum response size
Sourcepub fn with_timeout(self, timeout: Duration) -> Result<Self>
pub fn with_timeout(self, timeout: Duration) -> Result<Self>
Set timeout
Sourcepub fn auth_config(&self) -> &AuthConfig
pub fn auth_config(&self) -> &AuthConfig
Get the current authentication config
Trait Implementations§
Source§impl McpTransport for AuthenticatedHttpTransport
impl McpTransport for AuthenticatedHttpTransport
Auto Trait Implementations§
impl Freeze for AuthenticatedHttpTransport
impl !RefUnwindSafe for AuthenticatedHttpTransport
impl Send for AuthenticatedHttpTransport
impl Sync for AuthenticatedHttpTransport
impl Unpin for AuthenticatedHttpTransport
impl !UnwindSafe for AuthenticatedHttpTransport
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