updated result initialization

This commit is contained in:
Aditya Mayukh Som
2024-03-24 18:54:21 +05:30
parent b243dec3f1
commit 8cd6879332

View File

@@ -121,7 +121,7 @@ public class Main {
String? boundary,
}) {
try {
String result = "";
String result = '';
bool hasBody = false;
var rec = getValidRequestUri(
@@ -134,6 +134,13 @@ public class Main {
return "";
}
result += kTemplateStart;
if (requestModel.hasBody && requestModel.hasFileInFormData) {
result += kTemplateMultipartImport;
}
result += kTemplateMainClassMainMethodStart;
result += kTemplateAsyncHttpClientTryBlockStart;
var url = stripUriParams(uri);
// contains the HTTP method associated with the request