Class HttpHelpers

java.lang.Object
dev.tachyonmcp.core.transport.netty.http.HttpHelpers

public final class HttpHelpers extends Object
  • Method Details

    • setSseStreamHeaders

      public static void setSseStreamHeaders(io.netty.handler.codec.http.HttpResponse response, @Nullable String origin)
      Set required HTTP headers for SSE stream response.

      Connection: close because the server hard-closes the channel when the stream ends (PostSseStream/NettySseConnection); advertising keep-alive lets clients pool the socket and race the server's FIN with the next request.