Package io.servicetalk.encoding.api
Interface ContentCodecBuilder
-
@Deprecated public interface ContentCodecBuilderDeprecated.encoding-api based solution is being replaced with a netty implementation available under servicetalk-encoding-netty dependency.Builder forContentCodec.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ContentCodecbuild()Deprecated.Build and return an instance of theContentCodecwith the configuration of the builder.ContentCodecBuildersetMaxAllowedPayloadSize(int maxAllowedPayloadSize)Deprecated.Sets the maximum allowed decompressed payload size that the codec can process.
-
-
-
Method Detail
-
setMaxAllowedPayloadSize
ContentCodecBuilder setMaxAllowedPayloadSize(int maxAllowedPayloadSize)
Deprecated.Sets the maximum allowed decompressed payload size that the codec can process. This can help prevent malicious attempts to decode malformed payloads that can drain resources of the running instance.- Parameters:
maxAllowedPayloadSize- the maximum allowed payload size- Returns:
this- See Also:
- Zip Bomb
-
build
ContentCodec build()
Deprecated.Build and return an instance of theContentCodecwith the configuration of the builder.- Returns:
- the
ContentCodecwith the configuration of the builder
-
-