Example usage for io.netty.handler.codec.http HttpHeaderValues GZIP_DEFLATE

List of usage examples for io.netty.handler.codec.http HttpHeaderValues GZIP_DEFLATE

Introduction

In this page you can find the example usage for io.netty.handler.codec.http HttpHeaderValues GZIP_DEFLATE.

Prototype

AsciiString GZIP_DEFLATE

To view the source code for io.netty.handler.codec.http HttpHeaderValues GZIP_DEFLATE.

Click Source Link

Document

"gzip,deflate"

Usage

From source file:org.asynchttpclient.EofTerminatedTest.java

License:Open Source License

@Test
public void testEolTerminatedResponse() throws Exception {
    try (AsyncHttpClient ahc = asyncHttpClient(config().setMaxRequestRetry(0))) {
        ahc.executeRequest(/*from www. jav a  2s . com*/
                ahc.prepareGet(getTargetUrl()).setHeader(ACCEPT_ENCODING, HttpHeaderValues.GZIP_DEFLATE)
                        .setHeader(CONNECTION, HttpHeaderValues.CLOSE).build())
                .get();
    }
}