HostedMcpServerTool.Headers 속성

정의

원격 MCP 서버를 호출할 때 포함할 HTTP 헤더의 변경 가능한 사전을 가져오거나 설정합니다.

public:
 property System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ Headers { System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ get(); void set(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ value); };
public System.Collections.Generic.IDictionary<string,string>? Headers { get; set; }
member this.Headers : System.Collections.Generic.IDictionary<string, string> with get, set
Public Property Headers As IDictionary(Of String, String)

속성 값

설명

기본 공급자는 헤더를 지원하거나 적용하도록 보장되지 않습니다.

이 속성은 MCP 서버에 필요한 인증 헤더 또는 다른 헤더를 지정하는 데 유용합니다.

HTTP 헤더 이름은 대/소문자를 구분하지 않습니다. 호출자는 사전을 생성할 때 비교를 사용해야 OrdinalIgnoreCase 합니다.

적용 대상