public interface StreamDecoderFactory
StreamDecoder for a given Content-Encoding header value.
A new decoder is valid for the lifetime of an HttpResponse.| Modifier and Type | Method and Description |
|---|---|
static StreamDecoderFactory |
deflate()
Returns the
StreamDecoderFactory for "deflate" content encoding. |
String |
encodingHeaderValue()
Returns the value of the Content-Encoding header which this factory applies to.
|
static StreamDecoderFactory |
gzip()
Returns the
StreamDecoderFactory for "gzip" content encoding. |
StreamDecoder |
newDecoder(io.netty.buffer.ByteBufAllocator alloc)
Construct a new
StreamDecoder to use to decode an HttpResponse. |
static StreamDecoderFactory deflate()
StreamDecoderFactory for "deflate" content encoding.static StreamDecoderFactory gzip()
StreamDecoderFactory for "gzip" content encoding.String encodingHeaderValue()
StreamDecoder newDecoder(io.netty.buffer.ByteBufAllocator alloc)
StreamDecoder to use to decode an HttpResponse.Copyright © 2020 LeanCloud. All rights reserved.