mimeTypeValue function

String mimeTypeValue(
  1. MIMEType type
)

Implementation

String mimeTypeValue(MIMEType type) {
  switch (type) {
    case MIMEType.application_json:
      {
        return "application/json";
      }
    case MIMEType.multipart_form_data:
      {
        return "multipart/form-data";
      }
    case MIMEType.text_plain:
      {
        return "text/plain";
      }
    case MIMEType.application_x_www_form_urlencoded:
      {
        return "application/x-www-form-urlencoded";
      }
    case MIMEType.nil:
      {
        return "";
      }
  }
}