use of org.apache.flink.shaded.netty4.io.netty.handler.codec.http.multipart.DefaultHttpDataFactory in project reactor-netty by reactor.
the class HttpServerFormDecoderProvider method createNewHttpPostRequestDecoder.
ReactorNettyHttpPostRequestDecoder createNewHttpPostRequestDecoder(HttpRequest request, boolean isMultipart, @Nullable Path baseDirectory) {
DefaultHttpDataFactory factory = maxInMemorySize > 0 ? new DefaultHttpDataFactory(maxInMemorySize, charset) : new DefaultHttpDataFactory(maxInMemorySize == 0, charset);
factory.setMaxLimit(maxSize);
if (baseDirectory != null) {
factory.setBaseDir(baseDirectory.toFile().getAbsolutePath());
}
return isMultipart ? new ReactorNettyHttpPostMultipartRequestDecoder(factory, request) : new ReactorNettyHttpPostStandardRequestDecoder(factory, request);
}
Aggregations