} else if (request.getBodyGenerator() instanceof InputStreamBodyGenerator) {
nettyBody = new NettyInputStreamBody(InputStreamBodyGenerator.class.cast(request.getBodyGenerator()).getInputStream());
} else if (request.getBodyGenerator() != null) {
nettyBody = new NettyBodyBody(request.getBodyGenerator().createBody(), nettyConfig);
}
}
return nettyBody;
}