Package org.springframework.http.codec
@NonNullApi
@NonNullFields
package org.springframework.http.codec
Provides implementations of
Encoder
and Decoder
for web use.
Also declares a high-level
HttpMessageReader
and
HttpMessageWriter
for reading and
writing the body of HTTP requests and responses.
-
ClassDescriptionExtension of
CodecConfigurer
for HTTP message reader and writer options relevant on the client side.CodecConfigurer.DefaultCodecs
extension with extra client-side options.Defines a common interface for configuring either client or server HTTP message readers and writers.Registry for custom HTTP message readers and writers.Exposes the values of properties configured throughCodecConfigurer.defaultCodecs()
that are applied to default codecs.Customize or replace the HTTP message readers and writers registered by default.Registry and container for multipart HTTP message writers.HttpMessageReader
that wraps and delegates to aDecoder
.HttpMessageWriter
that wraps and delegates to anEncoder
.Implementation of anHttpMessageReader
to read HTML form data, i.e.HttpMessageWriter
for writing aMultiValueMap<String, String>
as HTML form data, i.e.Extension ofDecoder
exposing extra methods relevant in the context of HTTP request or response body decoding.Extension ofEncoder
exposing extra methods relevant in the context of HTTP request or response body encoding.Strategy for reading from aReactiveHttpInputMessage
and decoding the stream of bytes to Objects of type<T>
.Strategy for encoding a stream of objects of type<T>
and writing the encoded stream of bytes to anReactiveHttpOutputMessage
.KotlinSerializationBinaryDecoder<T extends kotlinx.serialization.BinaryFormat>Abstract base class forDecoder
implementations that defer to Kotlin binary serializers.KotlinSerializationBinaryEncoder<T extends kotlinx.serialization.BinaryFormat>Abstract base class forEncoder
implementations that defer to Kotlin binary serializers.KotlinSerializationStringDecoder<T extends kotlinx.serialization.StringFormat>Abstract base class forDecoder
implementations that defer to Kotlin string serializers.KotlinSerializationStringEncoder<T extends kotlinx.serialization.StringFormat>Abstract base class forEncoder
implementations that defer to Kotlin string serializers.KotlinSerializationSupport<T extends kotlinx.serialization.SerialFormat>Base class providing support methods for encoding and decoding with Kotlin serialization.Base class forEncoder
,Decoder
,HttpMessageReader
, orHttpMessageWriter
that uses a logger and shows potentially sensitive request data.HttpMessageReader
that wraps and delegates to aResourceDecoder
that extracts the filename from the"Content-Disposition"
header, if available, and passes it as theResourceDecoder.FILENAME_HINT
.HttpMessageWriter
that can write aResource
.Extension ofCodecConfigurer
for HTTP message reader and writer options relevant on the server side.CodecConfigurer.DefaultCodecs
extension with extra server-side options.Representation for a Server-Sent Event for use with Spring's reactive Web support.A mutable builder for aSseEvent
.Reader that supports a stream ofServerSentEvents
and also plainObjects
which is the same as anServerSentEvent
with data only.HttpMessageWriter
for"text/event-stream"
responses.