public class McpRequestContext extends Object
| Constructor and Description |
|---|
McpRequestContext(String sessionId,
String protocolVersion,
String remoteAddress,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String name)
便捷:获取某个请求头(大小写不敏感可在 Handler 里统一处理后放入)
|
Map<String,String> |
getHeaders() |
String |
getProtocolVersion() |
String |
getRemoteAddress() |
String |
getSessionId() |
Copyright © 2026. All rights reserved.