Class Protocols

java.lang.Object
dev.tachyonmcp.core.protocol.Protocols

@InternalApi public final class Protocols extends Object
Registry of Protocol implementations discovered via ServiceLoader.
  • Method Details

    • resolve

      public static Optional<Protocol> resolve(io.netty.handler.codec.http.HttpRequest request)
      Resolves the best Protocol for the given HTTP request.

      Filters all registered versions where Protocol.matches(HttpRequest) returns true (the "intersecting set" of what client and server both support), then picks the one with the highest Protocol.versionString() — the newest/highest version in the intersection.

    • list

      public static List<Protocol> list()
      All registered protocol implementations.