Package io.modelcontextprotocol.spec
Interface HttpHeaders
public interface HttpHeaders
Names of HTTP headers in use by MCP HTTP transports.
- Author:
- Dariusz Jędrzejczyk
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe HTTP Accept header.static final StringThe HTTP Cache-Control header.static final StringThe HTTP Content-Length header.static final StringThe HTTP Content-Type header.static final StringIdentifies events within an SSE Stream.static final StringIdentifies individual MCP sessions.static final StringIdentifies the MCP protocol version.
-
Field Details
-
MCP_SESSION_ID
Identifies individual MCP sessions.- See Also:
-
LAST_EVENT_ID
Identifies events within an SSE Stream.- See Also:
-
PROTOCOL_VERSION
Identifies the MCP protocol version.- See Also:
-
CONTENT_LENGTH
The HTTP Content-Length header.- See Also:
-
CONTENT_TYPE
The HTTP Content-Type header.- See Also:
-
ACCEPT
The HTTP Accept header.- See Also:
-
CACHE_CONTROL
The HTTP Cache-Control header.- See Also:
-