List of usage examples for io.netty.handler.codec.compression JdkZlibEncoder JdkZlibEncoder
public JdkZlibEncoder(byte[] dictionary)
From source file:com.netflix.iep.http.ByteBufs.java
License:Apache License
/** * Map to a GZIP compressed sequence of ByteBuf. *//*ww w . j a v a2 s.co m*/ public static Observable.Transformer<ByteBuf, ByteBuf> gzip() { return input -> encode(input, new EmbeddedChannel(new JdkZlibEncoder(ZlibWrapper.GZIP))); }