contentType = HttpHeaders.Values.APPLICATION_X_WWW_FORM_URLENCODED;
nettyBody = new NettyByteArrayBody(computeBodyFromParams(request.getFormParams(), bodyCharset), contentType);
} else if (isNonEmpty(request.getParts())) {
nettyBody = new NettyMultipartBody(request.getParts(), request.getHeaders(), nettyConfig);
} else if (request.getFile() != null) {
nettyBody = new NettyFileBody(request.getFile(), nettyConfig);
} else if (request.getBodyGenerator() instanceof FileBodyGenerator) {