pub struct SessionRpcMcpHeaders<'a> { /* private fields */ }Expand description
session.mcp.headers.* RPCs.
Implementations§
Source§impl<'a> SessionRpcMcpHeaders<'a>
impl<'a> SessionRpcMcpHeaders<'a>
Sourcepub async fn handle_pending_headers_refresh_request(
&self,
params: McpHeadersHandlePendingHeadersRefreshRequestRequest,
) -> Result<McpHeadersHandlePendingHeadersRefreshRequestResult, Error>
pub async fn handle_pending_headers_refresh_request( &self, params: McpHeadersHandlePendingHeadersRefreshRequestRequest, ) -> Result<McpHeadersHandlePendingHeadersRefreshRequestResult, Error>
Responds to a pending MCP dynamic headers refresh request. Hosts that subscribe to mcp.headers_refresh_required use this to provide short-lived per-server headers or to indicate that no dynamic headers are available for this refresh.
Wire method: session.mcp.headers.handlePendingHeadersRefreshRequest.
§Parameters
params- MCP headers refresh request id and the host response.
§Returns
Indicates whether the pending MCP headers refresh response was accepted.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcMcpHeaders<'a>
impl<'a> Clone for SessionRpcMcpHeaders<'a>
Source§fn clone(&self) -> SessionRpcMcpHeaders<'a>
fn clone(&self) -> SessionRpcMcpHeaders<'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 moreimpl<'a> Copy for SessionRpcMcpHeaders<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SessionRpcMcpHeaders<'a>
impl<'a> !UnwindSafe for SessionRpcMcpHeaders<'a>
impl<'a> Freeze for SessionRpcMcpHeaders<'a>
impl<'a> Send for SessionRpcMcpHeaders<'a>
impl<'a> Sync for SessionRpcMcpHeaders<'a>
impl<'a> Unpin for SessionRpcMcpHeaders<'a>
impl<'a> UnsafeUnpin for SessionRpcMcpHeaders<'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