mirror of
https://github.com/foss42/apidash.git
synced 2025-12-10 07:08:08 +08:00
updated result initialization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user