Package dev.tachyonmcp.core.protocol
Class Protocols
java.lang.Object
dev.tachyonmcp.core.protocol.Protocols
Registry of
Protocol implementations discovered via ServiceLoader.-
Method Summary
-
Method Details
-
resolve
Resolves the bestProtocolfor the given HTTP request.Filters all registered versions where
Protocol.matches(HttpRequest)returnstrue(the "intersecting set" of what client and server both support), then picks the one with the highestProtocol.versionString()— the newest/highest version in the intersection. -
list
All registered protocol implementations.
-