static Action <HttpListenerContext> DeflateEchoValue(string value) => context => { context.Response.Headers.Add("Content-encoding", "deflate"); using var gzip = new DeflateStream(context.Response.OutputStream, CompressionMode.Compress, true); gzip.WriteStringUtf8(value); };