Interface StreamDecoderFactory
public interface StreamDecoderFactory
An interface that constructs a new
StreamDecoder
for a given Content-Encoding header value.
A new decoder is valid for the lifetime of an HttpResponse
.-
Method Summary
Modifier and Type Method Description static StreamDecoderFactory
deflate()
Returns theStreamDecoderFactory
for"deflate"
content encoding.String
encodingHeaderValue()
Returns the value of the Content-Encoding header which this factory applies to.static StreamDecoderFactory
gzip()
Returns theStreamDecoderFactory
for"gzip"
content encoding.StreamDecoder
newDecoder(ByteBufAllocator alloc)
Construct a newStreamDecoder
to use to decode anHttpResponse
.
-
Method Details
-
deflate
Returns theStreamDecoderFactory
for"deflate"
content encoding. -
gzip
Returns theStreamDecoderFactory
for"gzip"
content encoding. -
encodingHeaderValue
String encodingHeaderValue()Returns the value of the Content-Encoding header which this factory applies to. -
newDecoder
Construct a newStreamDecoder
to use to decode anHttpResponse
.
-