connection creation template

This commit is contained in:
adityamayukhsom
2024-03-28 03:54:18 +05:30
parent cf3ff17580
commit 9233102083

View File

@ -40,6 +40,12 @@ PAYLOAD = {
final String kTemplateFormParamsWithoutFile = """
PAYLOAD = URI.encode_www_form({\n{% for param in params %} "{{ param.name }}" => "{{ param.value }}",\n{% endfor %}})\n\n
""";
final String kTemplateConnection = """
conn = Faraday.new do |faraday|
faraday.adapter Faraday.default_adapter{% if hasFile %}\n faraday.request :multipart{% endif %}
end\n\n
""";
}