header • Rust AI Agent SDK

header: Add a header

header

Method

</div>

This is a method of the TransportConfig class in the mcp module.

Add a header

Signature

python
def header(mut self, key: impl Into<String>, value: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.