Interface StreamDecoderFactory
- All Superinterfaces:
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 TypeMethodDescriptionstatic StreamDecoderFactory
brotli()
Returns theStreamDecoderFactory
for"br"
content encoding.static StreamDecoderFactory
deflate()
Returns theStreamDecoderFactory
for"deflate"
content encoding.Returns the value of the Content-Encoding header which this factory applies to.static StreamDecoderFactory
gzip()
Returns theStreamDecoderFactory
for"gzip"
content encoding.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. -
brotli
Returns theStreamDecoderFactory
for"br"
content encoding. -
encodingHeaderValue
String encodingHeaderValue()Returns the value of the Content-Encoding header which this factory applies to.- Specified by:
encodingHeaderValue
in interfaceStreamDecoderFactory
-
newDecoder
Construct a newStreamDecoder
to use to decode anHttpResponse
.- Specified by:
newDecoder
in interfaceStreamDecoderFactory
-