Add ModelContextProtocol.Core package (#428)
This commit is contained in:
parent
57458241b9
commit
703b0fe50b
1 changed files with 239 additions and 94 deletions
23
src/ModelContextProtocol.Core/Client/HttpTransportMode.cs
Normal file
23
src/ModelContextProtocol.Core/Client/HttpTransportMode.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
namespace ModelContextProtocol.Client;
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the transport mode for HTTP client connections.
|
||||
/// </summary>
|
||||
public enum HttpTransportMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Automatically detect the appropriate transport by trying Streamable HTTP first, then falling back to SSE if that fails.
|
||||
/// This is the recommended mode for maximum compatibility.
|
||||
/// </summary>
|
||||
AutoDetect,
|
||||
|
||||
/// <summary>
|
||||
/// Use only the Streamable HTTP transport.
|
||||
/// </summary>
|
||||
StreamableHttp,
|
||||
|
||||
/// <summary>
|
||||
/// Use only the HTTP with SSE transport.
|
||||
/// </summary>
|
||||
Sse
|
||||
}
|
||||
Loading…
Reference in a new issue