Class HttpHelpers
java.lang.Object
dev.tachyonmcp.core.transport.netty.http.HttpHelpers
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetSseStreamHeaders(io.netty.handler.codec.http.HttpResponse response, @Nullable String origin) Set required HTTP headers for SSE stream response.
-
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: closebecause 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.
-