added body rendering templates

request body will be different based on whether or not the request
contains files
This commit is contained in:
Shruti Roy
2024-03-17 23:39:33 +05:30
parent 95b1555e1a
commit dc2bb203fe

View File

@ -61,6 +61,18 @@ var_dump(\$response);
""";
//
String kMultiPartBodyWithFiles = """
\$request_body = build_data_files(\$boundary, \$fields, \$files);
""";
//
String kMultiPartBodyWithoutFiles = """
\$request_body = build_data(\$boundary, \$fields);
""";
//function for http verb to curl mapping
String httpMethod(String methodName) {
switch (methodName) {