接口 ClientCodecConfigurer.ClientDefaultCodecs
- 所有超级接口:
CodecConfigurer.DefaultCodecs
- 所有已知实现类:
ClientDefaultCodecsImpl
- 封闭接口:
- ClientCodecConfigurer
public static interface ClientCodecConfigurer.ClientDefaultCodecs
extends CodecConfigurer.DefaultCodecs
CodecConfigurer.DefaultCodecs extension with extra client-side options.-
方法概要
修饰符和类型方法说明voidserverSentEventDecoder(cn.taketoday.core.codec.Decoder<?> decoder) Configure theDecoderto use for Server-Sent Events.
-
方法详细资料
-
serverSentEventDecoder
void serverSentEventDecoder(cn.taketoday.core.codec.Decoder<?> decoder) Configure theDecoderto use for Server-Sent Events.By default if this is not set, and Jackson is available, the
CodecConfigurer.DefaultCodecs.jackson2JsonDecoder(cn.taketoday.core.codec.Decoder<?>)override is used instead. Use this method to customize the SSE decoder.Note that
CodecConfigurer.DefaultCodecs.maxInMemorySize(int), if configured, will be applied to the given decoder.- 参数:
decoder- the decoder to use
-