Class FormDemuxer

java.lang.Object
io.micronaut.http.server.netty.multipart.FormDemuxer
All Implemented Interfaces:
BufferConsumer

@Internal public final class FormDemuxer extends Object implements BufferConsumer
This class parses a ByteBody into a sequence of RawFormFields.
Since:
5.0.0
Author:
Jonas Konrad
  • Constructor Details

    • FormDemuxer

      public FormDemuxer(io.netty.contrib.multipart.PostBodyDecoder decoder, @Nullable @Nullable String multipartBoundary, Charset charset, io.netty.channel.Channel channel, BodySizeLimits fieldLimits, BodySizeLimits totalLimits, ByteBody byteBody)
      Parameters:
      decoder - The decoder
      multipartBoundary - The boundary of a multipart body, whose close delimiter must end the body: a body that ends before it, e.g. a truncated upload, fails like a malformed body. null for a body without one, e.g. URL-encoded data
      charset - The charset of the decoder, which it encodes the boundary with
      channel - The channel
      fieldLimits - The limits of a field
      totalLimits - The limits of the form
      byteBody - The body
  • Method Details